diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-10-03 10:10:07 +0200 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-10-03 10:10:07 +0200 |
commit | d97a9d493560a77883b2016b0949207d614cc40b (patch) | |
tree | 9133ded5b1fef760ef89ab8ea7ef72852e5943ec /lib/api | |
parent | a835b0ce1771c94d50c69830da4811353be60dcb (diff) | |
parent | 9f45e22993b3904436c314065730482c800a1f67 (diff) | |
download | gitlab-ce-d97a9d493560a77883b2016b0949207d614cc40b.tar.gz |
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 3a619169eca..3262884f6d3 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -71,7 +71,7 @@ module API forbidden! unless current_user.is_admin? end - def authorize! action, subject + def authorize!(action, subject) unless abilities.allowed?(current_user, action, subject) forbidden! end |