diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-01 10:39:53 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-01 10:39:53 +0300 |
commit | 33a00ceeeacfc52272d25cef914a027b9bf13a2a (patch) | |
tree | 3baeffab781954259202a814f0d349517bae2e41 /lib/api/helpers.rb | |
parent | 95b84e2c5aa92a5a8effc108fdbdf596dff4818c (diff) | |
download | gitlab-ce-33a00ceeeacfc52272d25cef914a027b9bf13a2a.tar.gz |
Create branch via API
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 03a2968fcc7..7ee4b9d1381 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -78,6 +78,10 @@ module API end end + def authorize_push_project + authorize! :push_code, user_project + end + def authorize_admin_project authorize! :admin_project, user_project end |