forked from Gitlink/forgeplus
ADD 版块管理授予平台管理员身份
This commit is contained in:
parent
273a17861b
commit
21b55eba83
|
@ -186,6 +186,7 @@ module ApiIndexHelper
|
|||
end
|
||||
|
||||
def user_banned_permission current_user, forum_id
|
||||
return true if current_user&.admin?
|
||||
if current_user.present?
|
||||
if forum_id.present?
|
||||
user_forum_moder = ForumModerator.where(forum_section_id: forum_id,user_id: current_user.id).exists?
|
||||
|
|
Loading…
Reference in New Issue