Skip to content

Commit

Permalink
Check user name for private tenant access control
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Kao <seankao@amazon.com>
  • Loading branch information
seankao-az committed Apr 25, 2024
1 parent 5439507 commit e936e34
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ internal object UserAccessManager {
if (getUserTenant(user) != tenant) {
return false
}
if (isUserPrivateTenant(user)) {
return access.contains("$USER_TAG${user.name}")
}
if (canAdminViewAllItems(user)) {
return true
}
Expand Down

0 comments on commit e936e34

Please sign in to comment.