Closed KickSchutte67 closed 2 years ago
My guess is that the permissions aren't being fetched from the database. Can you see if the permissions being sent via the network inspector?
These are the ones that are loaded, I am not 100% sure the permissions are fetched (I personally think not).
Look at the response of 784?relationshipType=
(third one from the top). It should contain a JSON of resources -> fields -> [field of permissions] -> value
.
This is the right one I suppose.
Yeah, it's this one. The value key has an empty array, so it's not fetching the permissions from the database.
Does the main permissions index page load the permissions?
For some reason the permissions do load when providing the \Vyuldashev\NovaPermission\NovaPermissionTool::make(),
inside the tools()
array. It is weird, since this was not necessary on the local environment yesterday. I guess the issue has been fixed now. Thanks for the fast responses!
One note. When enabling a policy for the permissions, I keep getting the "No Data" issue. Is there a way to keep loading the permissions while a policy is enabled to stop the users from accessing the index of permissions?
Edited after:
When using the PermissionPolicy, the policy must return true on the view()
policy function. Is there a way to return false on the view()
policy function and still load in the permissions? In my use case, users aren't allowed to attach users via this resource and only on the user resource itself. Due to the permissions still being visible, users can attach and detach users from it.
Hey! I am currently using this package to represent any permissions attached to a user.
On localhost, the permissions are visible and editable.
When I am deploying my localhost to a dev environment, the
PermissionBooleanGroup
gives me a "No Data".Do you have any idea what is going wrong here?