Fix.
This commit is contained in:
parent
96844d1662
commit
deff34ab95
@ -31,7 +31,7 @@ function isUserAdmin (options: RegisterServerOptions, res: Response): boolean {
|
|||||||
if (user.blocked) {
|
if (user.blocked) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (user.role !== UserRole.ADMINISTRATOR) {
|
if (user.role !== 0) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user