Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
2b26270a
Commit
2b26270a
authored
Aug 18, 2016
by
http://jneen.net/
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Deployment, Environment, and ExternalIssue policies
parent
06ba2602
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
app/policies/deployment_policy.rb
app/policies/deployment_policy.rb
+5
-0
app/policies/environment_policy.rb
app/policies/environment_policy.rb
+5
-0
app/policies/external_issue_policy.rb
app/policies/external_issue_policy.rb
+5
-0
No files found.
app/policies/deployment_policy.rb
0 → 100644
View file @
2b26270a
class
DeploymentPolicy
<
BasePolicy
def
rules
delegate!
@subject
.
project
end
end
app/policies/environment_policy.rb
0 → 100644
View file @
2b26270a
class
EnvironmentPolicy
<
BasePolicy
def
rules
delegate!
@subject
.
project
end
end
app/policies/external_issue_policy.rb
0 → 100644
View file @
2b26270a
class
ExternalIssuePolicy
<
BasePolicy
def
rules
delegate!
@subject
.
project
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment