mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
@@ -31,11 +31,8 @@ module.exports = {
|
||||
|
||||
if (user) {
|
||||
const adminUserIds = await sails.helpers.getAdminUserIds();
|
||||
|
||||
const projectIds = await sails.helpers.getMembershipProjectIdsForUser(user.id);
|
||||
|
||||
const userIdsForProject = await sails.helpers.getMembershipUserIdsForProject(projectIds);
|
||||
|
||||
const userIds = _.union([user.id], adminUserIds, userIdsForProject);
|
||||
|
||||
userIds.forEach((userId) => {
|
||||
|
||||
Reference in New Issue
Block a user