Hide the token, session and oauch client ui for non admins

This commit is contained in:
Johannes Zellner
2019-05-14 16:55:29 +02:00
parent 2039a143ac
commit 4b22e3e0a8
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -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);