This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
ADD 版块管理授予平台管理员身份
pull/245/head
jasder
5 years ago
parent
273a17861b
commit
21b55eba83
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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?
Write
Preview
Loading…
Cancel
Save