snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Asset "Create New" is still enabled though permission is set to "View" only

Open joe2725 opened this issue 6 years ago • 2 comments

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

Describe the bug I have created a user with Asset set to "View" only however "Create New" is still showing enabled. I refreshed my browser several times and cleared the cash but no luck. When it's pressed, I got the 403 error. What am I missing?

To Reproduce 1- Create a user and set the permission to Asset view only 2- Login with that user credentials 3- Select Assets/List all 4- Create New is displayed on the right corner and it is enabled 5- Click on create new button, 403 error is displayed

Expected behavior I think the "Create New" should not be displayed unless I am not setting the permissions correctly

Screenshots

user1

user1_permission

Server (please complete the following information):

  • Snipe-IT Version = v4.8.0 build 4186 (g893454dca)
  • PHP Version = 7.4.3
  • Laravel version = 5.5.48

Error Messages

  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo.
  • Include any additional information you can find in storage/logs and your webserver's logs.

Additional context

  • Is this a fresh install or an upgrade?
  • What OS and web server you're running Snipe-IT on
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

Add any other context about the problem here.

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

joe2725 avatar May 13 '20 04:05 joe2725

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!

stale[bot] avatar Jul 12 '20 04:07 stale[bot]

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.

stale[bot] avatar Jul 19 '20 05:07 stale[bot]