diff options
author | Thorsten Claus <thorstenclaus@web.de> | 2021-11-07 12:54:11 +0300 |
---|---|---|
committer | Thorsten Claus <thorstenclaus@web.de> | 2021-11-08 20:47:01 +0300 |
commit | d531b64d66fa3b3ae9de09b0feb7f8126af57ab2 (patch) | |
tree | 1f2b7c5184dc54a5fe0f83cf181d74bfff257e3f /lib | |
parent | d1e0b163e25cca972f8a382b7206022f3701bb90 (diff) |
fixes #8319
Diffstat (limited to 'lib')
-rw-r--r-- | lib/configuration_methods.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/configuration_methods.rb b/lib/configuration_methods.rb index 22a5e1a16..bdd6642df 100644 --- a/lib/configuration_methods.rb +++ b/lib/configuration_methods.rb @@ -52,9 +52,9 @@ module Configuration def local_posts_stream?(user) return true if settings.enable_local_posts_stream == "admins" && - Role.is_admin?(user) + user.admin? return true if settings.enable_local_posts_stream == "moderators" && - (Role.moderator?(user) || Role.is_admin?(user)) + user.moderator? settings.enable_local_posts_stream == "everyone" end |