Actions
Bug #19483
closedUser with inherited admin flag cannot see environments outside org/locs during import
Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
-
Description
The change in #18995 includes a conditional to User#visible_environments to return envs with no match to associated locations and organizations:
This uses the condition User.current.admin
, but it should use User.current.admin?
, which is the method that returns inherited admin flags. The #admin method is the attribute, so this would only work for admin users with the flag explicitly set.
Actions