Browse Source

ADD 版块管理授予平台管理员身份

pull/245/head
jasder 5 years ago
parent
commit
21b55eba83
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/helpers/api_index_helper.rb

+ 1
- 0
app/helpers/api_index_helper.rb View File

@@ -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…
Cancel
Save