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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
94948949
Commit
94948949
authored
Aug 11, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable :resource_access_token FF by default
parent
08edb3c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
app/services/resource_access_tokens/create_service.rb
app/services/resource_access_tokens/create_service.rb
+1
-1
changelogs/unreleased/218722-enable-project-access-tokens-by-default.yml
...leased/218722-enable-project-access-tokens-by-default.yml
+5
-0
No files found.
app/helpers/projects_helper.rb
View file @
94948949
...
...
@@ -774,7 +774,7 @@ module ProjectsHelper
def
project_access_token_available?
(
project
)
return
false
if
::
Gitlab
.
com?
::
Feature
.
enabled?
(
:resource_access_token
,
project
)
::
Feature
.
enabled?
(
:resource_access_token
,
project
,
default_enabled:
true
)
end
end
...
...
app/services/resource_access_tokens/create_service.rb
View file @
94948949
...
...
@@ -32,7 +32,7 @@ module ResourceAccessTokens
attr_reader
:resource_type
,
:resource
def
feature_enabled?
::
Feature
.
enabled?
(
:resource_access_token
,
resource
)
::
Feature
.
enabled?
(
:resource_access_token
,
resource
,
default_enabled:
true
)
end
def
has_permission_to_create?
...
...
changelogs/unreleased/218722-enable-project-access-tokens-by-default.yml
0 → 100644
View file @
94948949
---
title
:
Enable `:resource_access_token` feature flag by default
merge_request
:
39287
author
:
type
:
added
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