Merge branch 'hotfix/21.56.9' into master
[gitter.git] / server / api / v1 / groups / security-extra-admins.js
blob2ff53e1d5d97787d1400bdc02d8a77fc80ade9dc
1 'use strict';
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));
12 });