diff options
author | Rémy Coutable <remy@rymai.me> | 2016-06-17 18:59:33 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-06-18 06:06:34 +0200 |
commit | 654565c9dc734a597c525a75c8f72dd63235604b (patch) | |
tree | 0dbd5935c0019201dc93ee183e69e95d5f3513ce /lib | |
parent | a08a26ac814d7fd9f7523e22847fab0cc25ceb78 (diff) | |
download | gitlab-ce-654565c9dc734a597c525a75c8f72dd63235604b.tar.gz |
Raise a new Gitlab::Access::AccessDeniedError when permission is not enough to destroy a member
This is a try for a new approach to put the access checks at the service level.
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/access.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/access.rb b/lib/gitlab/access.rb index 6d0e30e916f..831f1e635ba 100644 --- a/lib/gitlab/access.rb +++ b/lib/gitlab/access.rb @@ -5,6 +5,8 @@ # module Gitlab module Access + class AccessDeniedError < StandardError; end + GUEST = 10 REPORTER = 20 DEVELOPER = 30 |