Describe the bug
I have a group set up in my snipe-it instances, which has full rights on manufacturers (view/create/edit/delete). But when one such user tries to edit a manufacturer, the Sad Panda and a 403 error appears.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The edit form should open.
Server (please complete the following information):
Desktop (please complete the following information):
Error Messages
The Gate tab in the debug bar shows one entry which is an error:
array:4 [
"ability" => "edit"
"result" => false
"user" => 6831
"arguments" => "[0 => App\Models\Manufacturer]"
]
The Auth tab shows the following:
web array:2 [ "name" => "myusername" "user" => array:34 [ "id" => 6831 ...
api array:2 [ "name" => "Guest" "user" => array:1 [ "guest" => true ] ]
storage/logs and your webserver's logs: NoneAdditional context
I'm also seeing this on a fresh v4.6.7 install. Here's the group settings:

But the user in that group (with all permissions set to Inherit) gets a 403 when attempting to access /manufacturers/2/edit.
Hi! Same with categories over here! All rights granted via group but 403 when trying to edit an existing categorie. Same user with same group can add categories nevertheless
I'm also seeing this as well on 4.6.6. If I make the group a blanket admin, it'll inherit properly, but if I remove admin access and try to define custom permissions in their group, the users in that group don't seem to pick up the custom permissions I give them.
Will try to update to 4.6.13 and see if this is still occurring.
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!
Yes, not fixed but present.
Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!
Seeing this issue too. 4.7.4
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!
Still relevant.
Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!
Seeing this issue too. v4.7.6 build 4143. Hope it can be fixed!
Seeing this issue too with categories. Version v4.7.6 - build 4143 (master)
问题影响supplier,categories,Manufacturers.找到apphttpcontrollers 对应的3个文件,把edit 修改为 update 可以解决。
$this->authorize('edit',supplier::class) change to
$this->authorize('update',supplier::class)
do the same operation as the other 2 files.
Anyone got a line on which files were being edited here? I'm experiencing the same issue as well.
Translate puts out the following
The problem affects suppliers, categories, Manufacturers. Find the 3 files corresponding to apphttpcontrollers, and modify edit to update to solve.
I'll give it a try the next days and maybe it'll work out.
seeing to on Version v4.7.7 - build 4160 (master)
问题影响supplier,categories,Manufacturers.找到apphttpcontrollers 对应的3个文件,把edit 修改为 update 可以解决。
$this->authorize('edit',supplier::class) change to
$this->authorize('update',supplier::class)do the same operation as the other 2 files.
problem solved for that but an error when clicking "save" update (category, manufacturer & suppliers)
I think the problem is with this form of permissions, does anyone know the location of the script for that?

This will be fixed with #7493 .
This will be fixed with #7493 .
ok solved
thanks @hapm
Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!
This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.
Same issue is still present in v4.9.2 with Suppliers when corresponding group permissions are:

In which Snipe-IT version mentioned fix (#7493) is applied ?
I failed to find it on:
https://github.com/snipe/snipe-it/releases
Sorry for my deleted comment, I missread yours @nenad-sladojevic . The permissions for suppliers should have been fixed in 48bbbe0f40f2f619ec459bacb3e7bd42df0f259f and should be on master. The pull request was #5807 and didn't reference this issue. It has been fixed in milestone v4.6.0. Sure your issue is related? Do you get the sad panda when trying to edit a supplier? Probably best option is to create a new issue and reference this one if you think these are related.
@hapm Looks like it was merged into the develop branch but never made it's way into master.
Most helpful comment
I'm also seeing this on a fresh v4.6.7 install. Here's the group settings:
But the user in that group (with all permissions set to Inherit) gets a 403 when attempting to access
/manufacturers/2/edit.