Delegate group and the project policies to the organization policy
The following discussion from !153555 (merged) should be addressed:
-
@abdwdd started a discussion: (+5 comments) note: These policies should only be enabled for organization owners.
Currently, we have defined the organization_owner
condition in GroupPolicy and ProjectPolicy. We should DRY up this code by using delegation so we can use can?(:admin_organization)
instead of defining organization_owner
in every policy.