mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
BUGFIX: system user needs no drafts.
This commit is contained in:
parent
d5d1473ced
commit
48790368a0
2 changed files with 4 additions and 2 deletions
|
@ -201,8 +201,10 @@ module Discourse
|
|||
user ||= User.admins.real.order(:id).first
|
||||
end
|
||||
|
||||
SYSTEM_USER_ID = -1
|
||||
|
||||
def self.system_user
|
||||
User.find_by(id: -1)
|
||||
User.find_by(id: SYSTEM_USER_ID)
|
||||
end
|
||||
|
||||
def self.store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue