users: fix #owner method.
This commit is contained in:
@@ -193,7 +193,7 @@ class User < ApplicationRecord
|
|||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
def owner
|
def owner
|
||||||
User.find_by!(level: Levels::ADMIN)
|
User.find_by!(level: Levels::OWNER)
|
||||||
end
|
end
|
||||||
|
|
||||||
def system
|
def system
|
||||||
|
|||||||
Reference in New Issue
Block a user