add api user role and fix api auth failure response
This commit is contained in:
@@ -19,6 +19,9 @@ __PACKAGE__->result_source_instance->view_definition(<<ENDSQL
|
||||
UNION
|
||||
SELECT username, 'ldap' AS role FROM users
|
||||
WHERE ldap
|
||||
UNION
|
||||
SELECT username, 'api', AS role FROM users
|
||||
WHERE token AND token_from
|
||||
ENDSQL
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user