3 var SecurityResourceExtraAdminsRoute
= require('../common/create-security-extra-admins-resource');
4 var sdWithPolicyFactory
= require('../../../services/security-descriptor-with-policy-service');
5 var Promise
= require('bluebird');
7 module
.exports
= new SecurityResourceExtraAdminsRoute({
8 id
: 'groupSecurityExtraAdmin',
9 getSecurityDescriptorWithPolicyService: function(req
) {
10 return Promise
.resolve(sdWithPolicyFactory
.createForGroup(req
.group
, req
.userGroupPolicy
));