restrictions_showPermission, Token Scope, Not has Restriction, and:restrictable_type is user: restriction create by auth user or restrictable_id is id of auth user or restricted user is Descendant Of auth userrestrictable_type is m3u/mag/enigma: restriction create by auth user or the object created by auth user or The user who created this object is a descendant of the auth user.Authorization: Bearer ********************curl --location --request GET 'https://api.temlittoral.com/api/v1/restrictions/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'{
"id": 4,
"title": "Test restrict",
"description": "Test restrict transaction",
"batch": null,
"restrictable_type": "App\\Models\\User",
"restrictable_id": 2,
"permissions": [
{
"id": 18,
"name": "transactions_index",
"guard_name": "api",
"created_at": "2024-07-18T10:07:54.000000Z",
"updated_at": "2024-07-18T10:07:54.000000Z",
"pivot": {
"restriction_id": 4,
"permission_id": 18
}
},
{
"id": 19,
"name": "transactions_see_all",
"guard_name": "api",
"created_at": "2024-07-18T10:07:54.000000Z",
"updated_at": "2024-07-18T10:07:54.000000Z",
"pivot": {
"restriction_id": 4,
"permission_id": 19
}
}
]
}