Skip to content
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

User permission error #14961

Closed
2 tasks done
huifei0129 opened this issue Jun 25, 2024 · 3 comments
Closed
2 tasks done

User permission error #14961

huifei0129 opened this issue Jun 25, 2024 · 3 comments

Comments

@huifei0129
Copy link

Debug mode

Describe the bug

I have one group company which includes 10 sub-companies
Each sub-company has different departments.
eg:
group company: C
sub-company: C1,C2,C3,C4.....
department of company C1: C1-HR, C1-IT, C1-FA
the user in IT department of company C1:C1-IT-user1

how to set the "C1-IT-user1" permission below ?

1、only view his own assets——Done
just deny all permission

2、only view and edit his own assets——Wrong
(1) when view is granted, will view all the essets of the sub-company C1.
(2) when both view and edit are granted, will view and edit all the essets of the sub-company C1.

3、only view and edit all his department‘s assets——Department asset manager?

4、only view and edit all his sub-company‘s assets——Sub-company C1 asset manager?

5、view and edit group company asset data (Global: Super User)

Reproduction steps

...
User permission error

Expected behavior

User permission error

Screenshots

No response

Snipe-IT Version

v7.0.5 build 14092 (g294fb1f77)

Operating System

Windows

Web Server

mysql

PHP Version

8.1.25

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

@snipe
Copy link
Owner

snipe commented Jun 25, 2024

Snipe-IT doesn't really support sub-companies, so I'm not exactly sure what the question is.

@huifei0129
Copy link
Author

when both view and edit are granted, user will view and edit all the essets.
but actually only the manager can have this permission,
and the end-user can view and edit his own assets, not include other user’s assets.

edit
user see his own

@snipe
Copy link
Owner

snipe commented Jun 26, 2024

With full multiple company support, users are only allowed to access (with whatever permissions you give them) the assets, etc that belong to the company they are assigned to. We don't have a concept of sub-companies, nor managers (at least in the way I think you mean).

@snipe snipe closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants