Make the UI capability based
This commit is contained in:
@@ -142,7 +142,7 @@ app.filter('appIsInstalledAndHealthy', function () {
|
||||
|
||||
app.filter('activeOAuthClients', function () {
|
||||
return function (clients, user) {
|
||||
return clients.filter(function (c) { return user.admin || (c.activeTokens && c.activeTokens.length > 0); });
|
||||
return clients.filter(function (c) { return user.caps.clients || (c.activeTokens && c.activeTokens.length > 0); });
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user