-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entering asset model in a full company setup failed #5040
Comments
That doesn’t really make sense though. The super admin right overrides everything else, always. (On a basic, unnuanced level.) Please see if you can reproduce this on the demo. You can create a new test user with your specific permissions to try. Also, for what reason are you denying rights on a super admin? That seems like a use case that wouldn’t happen. |
Hi snipe, many thanks for your quick reply and it seems that my use case has not been reported properly. Hence, let me describe the use case in more details because it is possible that snipe-it doesn't support the use case yet I am looking for it. My intention is to setup 3 User and 3 Companies. In the settings I have enabled the "Full company support". Each User will be assigned to its appropriate company. In addition, I have create a new group where each user is assigned to. This group has been described already with first post and also a screenshot has been attached previously. Each User should be able to create new Assets and also new Models but if the user has missing "Super admin" access rights user cannot save the new model during the process of creation of assets. BUT I don't want to give the users "super admin" rights in order to maintain the related assets, licenses,etc. of the assigned company. User A is assigned to Company A User A is allow to maintain (create,edit, delete,etc.) all assets, licenses, etc. of Company A only. Only the "super user" should be able to maintain (create,edit, delete,etc.) all assets, licenses, etc. of all Companies. I hope it helps a bit to explain my problem I am facing. I am really looking forward to hear from you. Thanks and best regards, BTW, many thanks for this great tool. Which I use currently for Company A but I want to gain the usage to B and C. |
Hi, I wanted to re-produce the behavior on the Demo Site but after creating the group, setting up the user and assign the previously created group. Unfortunately, assigning a group is for superuser only. Probably someone can guide me to a solution for my problem. Any feedback is highly appreciated. Thanks and kind regards |
Have you tried upgrading your version? Some things related to groups were changed in later versions. |
Expected Behavior (or desired behavior if a feature request)
Enabled "Full company support" Setup
1 User with all rights denied, except "Super Sser" rights (see Screenshot)
The user has been assigned to a company .
The system should allow to create an asset. During the Process the of creating an asset, user should has permissions also to create an none existing asset model.
Actual Behavior
During the process of creating the asset, the user creates a new model and cannot save it.
Please confirm you have done the following before posting your bug report:
Provide answers to these questions:
Is this a fresh install or an upgrade?
fresh install
Version of Snipe-IT you're running
v4.0.13 build 323 (gc1f8db3)
Version of PHP you're running
7.0.22-0ubuntu0.16.04.1
Version of MySQL/MariaDB you're running
10.1.28+maria-1~xenial
What OS and web server you're running Snipe-IT on
Linux IT01 4.4.0-104-generic Fix for broken datatables in upgrading to v2.2 #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
apache2 2.4.18-2ubuntu3.5
What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
install.sh
WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
"Server Error. An Error has occured! This action is unauthorized"
What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
https://sub.domain.com/hardware/create
If a stacktrace is provided in the error, include that too.
No stacktrace was provided.
Any errors that appear in your browser's error console.
unauthorized./var/www/snipeit/vendor/laravel/framework/src/Illuminate/Auth/Access/HandlesAuthorization.php#28
Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo.
No, the scenario I am dealing with cannot being setup accordingly.
Include any additional information you can find in
storage/logs
and your webserver's logs.No log entries will be produced for this error in storage/logs.
Include what you've done so far in the installation, and if you got any error messages along the way.
No
Indicate whether or not you've manually edited any data directly in the database
No
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.
https://snipe-it.readme.io/docs/getting-help
The text was updated successfully, but these errors were encountered: