Yeh
This commit is contained in:
@@ -37,6 +37,16 @@ class WafPolicyPolicy < ApplicationPolicy
|
||||
!user.viewer? # All authenticated users except viewers can deactivate policies
|
||||
end
|
||||
|
||||
# Path pattern policy permissions
|
||||
def new_path_pattern?
|
||||
create?
|
||||
end
|
||||
|
||||
def create_path_pattern?
|
||||
create?
|
||||
end
|
||||
|
||||
# Country policy permissions
|
||||
def new_country?
|
||||
create?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user