diff --git a/app/policies/activity_policy.rb b/app/policies/activity_policy.rb index cf0a970b..357a78f9 100644 --- a/app/policies/activity_policy.rb +++ b/app/policies/activity_policy.rb @@ -14,7 +14,7 @@ def create? end def update? - user&.treasurer? || user&.main_bartender? || user&.renting_manager? + user&.treasurer? || user&.renting_manager? || user&.main_bartender? end def lock? diff --git a/app/policies/application_policy.rb b/app/policies/application_policy.rb index 54261076..f58bbe0f 100644 --- a/app/policies/application_policy.rb +++ b/app/policies/application_policy.rb @@ -7,7 +7,7 @@ def initialize(user, record) end def index? - user&.treasurer? || user&.main_bartender? || user&.renting_manager? + user&.treasurer? || user&.renting_manager? || user&.main_bartender? end def show? @@ -31,7 +31,7 @@ def edit? end def destroy? - user&.treasurer? || user&.main_bartender? || user&.renting_manager? + user&.treasurer? || user&.renting_manager? || user&.main_bartender? end def scope diff --git a/app/policies/price_list_policy.rb b/app/policies/price_list_policy.rb index 3433145c..dca3f943 100644 --- a/app/policies/price_list_policy.rb +++ b/app/policies/price_list_policy.rb @@ -14,7 +14,7 @@ def index? end def show? - user&.treasurer? || user&.main_bartender? || user&.renting_manager? + user&.treasurer? || user&.renting_manager? || user&.main_bartender? end def create?