From cc41e7003ebab935c2fd0a4557afad56c5a2f32e Mon Sep 17 00:00:00 2001 From: zak39 Date: Tue, 5 Nov 2024 18:39:53 +0100 Subject: [PATCH] chore: Comment the function to get a groupfolder --- src/SelectGroupfolders.vue | 56 +++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/SelectGroupfolders.vue b/src/SelectGroupfolders.vue index 16ef92c0..295ee765 100644 --- a/src/SelectGroupfolders.vue +++ b/src/SelectGroupfolders.vue @@ -133,34 +133,34 @@ export default { await addGroupToGroupfolder(space.folder_id, spaceManagerGID) await addGroupToGroupfolder(space.folder_id, spaceUserGID) - const groupfolder = await get(groupfoldersSelected[mountPoint].id, this) - const groupstransferoUserGroup = await transferUsersToUserGroup(space.id_space, groupfolder) - - await addGroupToManageACLForGroupfolder(space.folder_id, spaceManagerGID, this) - - const GidGroupsFromACL = groupfoldersSelected[mountPoint].manage.map(group => group.id) - await GidGroupsFromACL.forEach(gid => { - removeGroupToManageACLForGroupfolder(space.folder_id, gid) - }) - - // Define the quota - let quota = '' - if (groupfoldersSelected[mountPoint].quota === '-3') { - quota = t('workspace', 'unlimited') - } else { - quota = groupfoldersSelected[mountPoint].quota - } - - this.$store.commit('addSpace', { - color: space.color, - groups: groupstransferoUserGroup.groups, - isOpen: false, - id: space.id_space, - groupfolderId: space.folder_id, - name: space.name, - quota, - users: groupstransferoUserGroup.users, - }) + // const groupfolder = await get(groupfoldersSelected[mountPoint].id, this) + // const groupstransferoUserGroup = await transferUsersToUserGroup(space.id_space, groupfolder) + + // await addGroupToManageACLForGroupfolder(space.folder_id, spaceManagerGID, this) + + // const GidGroupsFromACL = groupfoldersSelected[mountPoint].manage.map(group => group.id) + // await GidGroupsFromACL.forEach(gid => { + // removeGroupToManageACLForGroupfolder(space.folder_id, gid) + // }) + + // // Define the quota + // let quota = '' + // if (groupfoldersSelected[mountPoint].quota === '-3') { + // quota = t('workspace', 'unlimited') + // } else { + // quota = groupfoldersSelected[mountPoint].quota + // } + + // this.$store.commit('addSpace', { + // color: space.color, + // groups: groupstransferoUserGroup.groups, + // isOpen: false, + // id: space.id_space, + // groupfolderId: space.folder_id, + // name: space.name, + // quota, + // users: groupstransferoUserGroup.users, + // }) } },