Skip to content

Commit

Permalink
Merge pull request #514 from fgourichon/fix/staff_permission
Browse files Browse the repository at this point in the history
Authorize staff to manage app instances
  • Loading branch information
ouranos authored Oct 4, 2017
2 parents bce1e03 + 1d1437d commit ab8bfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/mno_enterprise/concerns/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def impac_abilities(user)

# Abilities for admin user
def admin_abilities(user)
if user.admin_role.to_s.casecmp('admin').zero?
if user.admin_role.to_s.casecmp('admin').zero? || user.admin_role.to_s.casecmp('staff').zero?
can :manage_app_instances, MnoEnterprise::Organization
end
end
Expand Down

0 comments on commit ab8bfd7

Please sign in to comment.