|
|
@@ -101,6 +101,7 @@ Crowi.prototype.init = async function() {
|
|
|
this.setUpAcl(),
|
|
|
this.setUpCustomize(),
|
|
|
this.setUpRestQiitaAPI(),
|
|
|
+ this.setupUserGroup(),
|
|
|
]);
|
|
|
};
|
|
|
|
|
|
@@ -539,4 +540,12 @@ Crowi.prototype.setUpRestQiitaAPI = function() {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+Crowi.prototype.setupUserGroup = async function() {
|
|
|
+ const UserGroupService = require('../service/user-group');
|
|
|
+ if (this.userGroupService == null) {
|
|
|
+ this.userGroupService = new UserGroupService(this);
|
|
|
+ return this.userGroupService.init();
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
module.exports = Crowi;
|