Verified Commit a441475f authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

revert unneccesary change

parent 0e50d5c0
Pipeline #13816 failed with stage
in 23 minutes and 51 seconds
...@@ -32,11 +32,8 @@ class ApplicationPolicy ...@@ -32,11 +32,8 @@ class ApplicationPolicy
end end
def department_manager_offer? def department_manager_offer?
department_manager? && department_manager_offer_related? department_manager? &&
end (user.department.include?(record.department) || user.group_offers.include?(record))
def department_manager_offer_related?
user.department.include?(record.department) || user.group_offers.include?(record)
end end
def superadmin_or_department_manager_offer? def superadmin_or_department_manager_offer?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment