Hide the token, session and oauch client ui for non admins
This commit is contained in:
@@ -382,6 +382,8 @@ angular.module('Application').controller('AccountController', ['$scope', 'Client
|
||||
}
|
||||
|
||||
Client.onReady(function () {
|
||||
if (!Client.getUserInfo().admin) return;
|
||||
|
||||
Client.getOAuthClients(function (error, activeClients) {
|
||||
if (error) return console.error(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user