Skip to content

Add BoardPolicy

Mario de la Ossa requested to merge 54385-board-policy into master

What does this MR do?

Adds a BoardPolicy object to cut down on the need to check whether a board has a group or a project as a parent during ability checks.

During testing I found that the relevant specs were stubbing the ability checks out, which means we had zero coverage for the policy objects. I switched that in this MR

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/54385

Does this MR meet the acceptance criteria?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54385

Merge request reports