We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd0fdc commit 0e59ce6Copy full SHA for 0e59ce6
api/app/models/concerns/readable.rb
@@ -81,7 +81,8 @@ def readable_records(team:)
81
return all if %w[Category Problem].include?(klass)
82
83
# 見学者なら一部のテーブルを除き全レコード取得可能
84
- return all if team.audience? && all_models(ignore: %w[Attachment Config Notice ProblemEnvironment]).include?(klass)
+ return all if team.audience? && %w[Category Problem ProblemBody ProblemSupplement Team].include?(klass)
85
+ return where(team: [nil]) if team.audience? && %w[Notice].include?(klass)
86
87
case klass
88
when 'Answer'
0 commit comments