mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
feat(uac): add multi user management and UAC (#647)
This commit is contained in:
parent
f28f223624
commit
80d50378c5
91 changed files with 3973 additions and 866 deletions
8
app/rest/resourceControl.js
Normal file
8
app/rest/resourceControl.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
angular.module('portainer.rest')
|
||||
.factory('ResourceControl', ['$resource', 'USERS_ENDPOINT', function ResourceControlFactory($resource, USERS_ENDPOINT) {
|
||||
'use strict';
|
||||
return $resource(USERS_ENDPOINT + '/:userId/resources/:resourceType/:resourceId', {}, {
|
||||
create: { method: 'POST', params: { userId: '@userId', resourceType: '@resourceType' } },
|
||||
remove: { method: 'DELETE', params: { userId: '@userId', resourceId: '@resourceId', resourceType: '@resourceType' } },
|
||||
});
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue