blob: cb72c2b4590d2a300128ff47d598f1f21c712b6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class GlobalPolicy < BasePolicy
def rules
return unless @user
can! :create_group if @user.can_create_group
can! :read_users_list
unless @user.blocked? || @user.internal?
can! :log_in unless @user.access_locked?
can! :access_api
can! :access_git
can! :receive_notifications
end
end
end
|