Commit 5579cb99 authored by Alex Kalderimis's avatar Alex Kalderimis

Only read design activity iff we can read_group

parent bd0b030b
......@@ -66,7 +66,7 @@ class GroupPolicy < BasePolicy
with_scope :subject
condition(:has_project_with_service_desk_enabled) { @subject.has_project_with_service_desk_enabled? }
rule { design_management_enabled }.policy do
rule { can?(:read_group) & design_management_enabled }.policy do
enable :read_design_activity
end
......
Markdown is supported
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