mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-14 08:50:44 +00:00
add gathermod to gatherpage permissions
This commit is contained in:
parent
61e1826959
commit
d5aef89bb0
1 changed files with 2 additions and 2 deletions
|
@ -181,11 +181,11 @@ class Gather < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def can_create? cuser
|
||||
cuser and cuser.admin?
|
||||
return true if cuser.admin? or cuser.gather_moderator?
|
||||
end
|
||||
|
||||
def can_update? cuser
|
||||
cuser and cuser.admin?
|
||||
return true if cuser.admin? or cuser.gather_moderator?
|
||||
end
|
||||
|
||||
def self.last(name = "NS2")
|
||||
|
|
Loading…
Reference in a new issue