snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.92k stars 3.16k forks source link

Users and Usergroups cannot Create Asset without having the View Asset permission #2864

Closed rdggdr closed 7 years ago

rdggdr commented 7 years ago

Expected Behavior (or desired behavior if a feature request)

I granted usergroup HUserGroup the permissions to create assets and edit assets. They do not have permission to View Asset etc. I would expect this to mean that a user in HUserGroup can add assets into the system, but not see assets created by others.


Actual Behavior

They do not get a menu option to create assets. They also cannot create assets (Sadpanda error after clicking Save on the asset log form - I accessed it directly via the URL instead of looking for a menu). If I grant HUserGroup the permission to view assets, they can then create assets.


Please confirm you have done the following before posting your bug report:


Please provide answers to these questions before posting your bug report:

snipe commented 7 years ago

The assumption is that if a user can add an asset, they can see assets. (Otherwise, they can't even see the ones they created.) This is working as expected in your scenario.