Skip to content
代码片段 群组 项目
提交 f431c306 编辑于 作者: Clayton Cornell's avatar Clayton Cornell
浏览文件

Merge branch 'docs-declarative-policy-sorce-link' into 'master'

Add source project link for declarative policy

See merge request gitlab-org/gitlab!96087
No related branches found
No related tags found
无相关合并请求
......@@ -10,6 +10,8 @@ The DeclarativePolicy framework is designed to assist in performance of policy c
The policy used is based on the subject's class name - so `Ability.allowed?(user, :some_ability, project)` creates a `ProjectPolicy` and check permissions on that.
The Ruby gem source is available in the [declarative-policy](https://gitlab.com/gitlab-org/ruby/gems/declarative-policy) GitLab project.
## Managing Permission Rules
Permissions are broken into two parts: `conditions` and `rules`. Conditions are boolean expressions that can access the database and the environment, while rules are statically configured combinations of expressions and other rules that enable or prevent certain abilities. For an ability to be allowed, it must be enabled by at least one rule, and not prevented by any.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册