fix error
This commit is contained in:
1 parent
5b8cdfd69b
commit
8494f37661
1 file changed
+2
-2
@@ -136,7 +136,7 @@ class Bulletin
|
||||
end
|
||||
end
|
||||
def check_limit
|
||||
check_status_limit(update_user)
|
||||
check_status_limit(update_user).length>0 ? false : true
|
||||
end
|
||||
def check_status_limit(user,check_only=false)
|
||||
role_ids = user.member_profile.roles.map(&:id) rescue []
|
||||
@@ -168,7 +168,7 @@ class Bulletin
|
||||
end
|
||||
end.compact
|
||||
end
|
||||
reach_limit.length>0 ? false : true
|
||||
reach_limit
|
||||
end
|
||||
def set_expire
|
||||
self.expirable_created_at = Time.now if self.is_preview
|
||||
|
||||
Reference in new issue
Block a user