mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-12 12:50:53 +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
|
end
|
||||||
|
|
||||||
def can_create? cuser
|
def can_create? cuser
|
||||||
cuser and cuser.admin?
|
return true if cuser.admin? or cuser.gather_moderator?
|
||||||
end
|
end
|
||||||
|
|
||||||
def can_update? cuser
|
def can_update? cuser
|
||||||
cuser and cuser.admin?
|
return true if cuser and cuser.admin? or cuser.gather_moderator?
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.last(name = "NS2")
|
def self.last(name = "NS2")
|
||||||
|
|
Loading…
Reference in a new issue