diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-27 22:35:41 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-27 22:39:34 +0400 |
commit | 643a6e5824cc8ffb6b58288b7822f42d13476c8f (patch) | |
tree | 48d417e74e51d2d22b25e6c80e729412ea9c92ae /lib/gitlab | |
parent | 24e26d8b7a4a2487600f273f7b1a6236691d2664 (diff) |
Improve admin user show page
Show permissions for all project.
Add ability to remove user from group if not an owner
Remove unnecessary admin controller
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/access.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/access.rb b/lib/gitlab/access.rb index fa273f3f50a..87f9cfab608 100644 --- a/lib/gitlab/access.rb +++ b/lib/gitlab/access.rb @@ -44,5 +44,9 @@ module Gitlab def human_access Gitlab::Access.options_with_owner.key(access_field) end + + def owner? + access_field == OWNER + end end end |