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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
ef944e83
Commit
ef944e83
authored
Nov 24, 2014
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Git hook messages: wiki access fix
parent
f34d5d8a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/git_access_wiki.rb
lib/gitlab/git_access_wiki.rb
+1
-1
spec/lib/gitlab/git_access_wiki_spec.rb
spec/lib/gitlab/git_access_wiki_spec.rb
+1
-1
No files found.
lib/gitlab/git_access_wiki.rb
View file @
ef944e83
module
Gitlab
class
GitAccessWiki
<
GitAccess
def
change_a
llowed
_check
(
user
,
project
,
change
)
def
change_a
ccess
_check
(
user
,
project
,
change
)
if
user
.
can?
(
:write_wiki
,
project
)
build_status_object
(
true
)
else
...
...
spec/lib/gitlab/git_access_wiki_spec.rb
View file @
ef944e83
...
...
@@ -13,7 +13,7 @@ describe Gitlab::GitAccessWiki do
subject
{
access
.
push_access_check
(
user
,
project
,
changes
)
}
it
{
subject
.
should
be_true
}
it
{
subject
.
allowed?
.
should
be_true
}
end
def
changes
...
...
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