Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/gmp_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,13 @@ send_get_common (const char *type, get_data_t *get, iterator_t *iterator,
&& (strcmp (get_iterator_owner_name (iterator),
current_credentials.username)
== 0))
/* Or the user is effectively the owner. */
|| acl_user_has_super (current_credentials.uuid,
get_iterator_owner (iterator))
/* Or the user is effectively the owner and the user is not the user
* of the resource if the resource is of type user. */
|| (acl_user_has_super (current_credentials.uuid,
get_iterator_owner (iterator))
&& (strcmp (type, "user")
|| strcmp (get_iterator_name (iterator), current_credentials.username)
Comment thread
ozgen marked this conversation as resolved.
Outdated
|| acl_user_is_super_admin (current_credentials.uuid)))
/* Or the user has Admin rights and the resource is a permission or a
* report format... */
|| (current_credentials.uuid
Expand Down
Loading