mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-12 04:40:42 +00:00
Update app/models/gather.rb
This commit is contained in:
parent
8fc0852226
commit
f6ca786c0e
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 and cuser.admin? or cuser.gather_moderator?
|
||||
end
|
||||
|
||||
def self.last(name = "NS2")
|
||||
|
|
Loading…
Reference in a new issue