diff options
author | Johan Sørensen <johan@johansorensen.com> | 2009-11-17 15:06:32 +0100 |
---|---|---|
committer | Johan Sørensen <johan@johansorensen.com> | 2009-11-19 15:42:28 +0100 |
commit | 8f7f6ec8f2fe12aad17fb7a8a67934b3da9b8a50 (patch) | |
tree | 76f20fceb76078ff4ed0807ddd063303408b8f60 /app/models/committership.rb | |
parent | 9bd5b1b8d526bae9744635cb32925ea49491e85c (diff) | |
download | gitorious-mainline-outdated-8f7f6ec8f2fe12aad17fb7a8a67934b3da9b8a50.zip gitorious-mainline-outdated-8f7f6ec8f2fe12aad17fb7a8a67934b3da9b8a50.tar.gz gitorious-mainline-outdated-8f7f6ec8f2fe12aad17fb7a8a67934b3da9b8a50.tar.bz2 |
Be able to get a list of permissions out of a Committership
Diffstat (limited to 'app/models/committership.rb')
-rw-r--r-- | app/models/committership.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/committership.rb b/app/models/committership.rb index f9277ed..7433455 100644 --- a/app/models/committership.rb +++ b/app/models/committership.rb @@ -85,6 +85,10 @@ class Committership < ActiveRecord::Base permitted?(:admin) end + def permission_list + PERMISSION_TABLE.keys.select{|perm| permitted?(perm) } + end + def breadcrumb_parent Breadcrumb::Committerships.new(repository) end |