mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: staged users weren't able to reply in restricted categories
This commit is contained in:
parent
74e93d2260
commit
800081f606
5 changed files with 53 additions and 50 deletions
|
@ -78,6 +78,10 @@ class Guardian
|
|||
)
|
||||
end
|
||||
|
||||
def is_staged?
|
||||
@user.staged?
|
||||
end
|
||||
|
||||
# Can the user see the object?
|
||||
def can_see?(obj)
|
||||
if obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue