Skip to content
Snippets Groups Projects
Commit 9fbbd6a6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Return empty abilities if user is blocked

parent dd19ce96
No related branches found
No related tags found
1 merge request!5081fixed command to update init script
Loading
Loading
@@ -2,6 +2,7 @@ class Ability
class << self
def allowed(user, subject)
return [] unless user.kind_of?(User)
return [] if user.blocked?
 
case subject.class.name
when "Project" then project_abilities(user, subject)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment