Added restriction to group policy. Create link hidden for non-pro.
This commit is contained in:
@@ -5,6 +5,10 @@ class GroupPolicy < ApplicationPolicy
|
||||
true
|
||||
end
|
||||
|
||||
def create?
|
||||
admin? or current_account.is_pro
|
||||
end
|
||||
|
||||
def update?
|
||||
if admin?
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user