Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-03chore(cs): Apply cs:fixBaptiste Fotia
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
2022-10-03chore(lock): Exucted git reset "Apply the format after 'php-cs-fixer fix .' ↵Baptiste Fotia
cmd". Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
2022-04-04Modernize PHP code to php 7.4 standardCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-02-04Complete getFolder() by adding the manage folder-mappings.Claus-Justus Heine
In order not to "disturb" the DAV-plugin the patch also adds a new function FolderManager::getFolderAclEnabled($id) which just returns the ACL-enabled status. It also slightly optized the previous state where the DAV-plugin called getFolder(..., rootStorageId: -1) which resulted in an unnecessary empty join with the file-cache table. Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
2022-01-12Update psalm and cs-fixerCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-21Improve psaml add stub implementationCarl Schwan
This allows to now run psalm in many new parts of the codebase Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-12-20fix Oracle query limit complianceTobias Knipping
Signed-off-by: Tobias Knipping <knipping@tk-schulsoftware.de>
2021-11-23Merge pull request #1759 from nextcloud/carl/noid/trash-expireCarl Schwan
Expire group folders trashbin
2021-11-19Respect quota + add background jobCarl Schwan
Fix #930 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-11-19Merge pull request #1722 from nextcloud/work/admin-delegationCarl Schwan
Implement Admin delegation for group folder
2021-11-14Enfore the usage of int for quotaCarl Schwan
The Doctrine DBAL returns a string for a bigint. This causes problems since most of the code expects an int (QuotaStorage and MountProvider::getMount). In particular the BackgroundJob for version expiration got broken because of that. The only disadvantage is that it will theorically breaks on 32bits system but since we don't support that and some part of the code were already expecing an int. This probably won't change anything. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-11-04Implement Admin delegation for group folderCarl Schwan
This is an alternative implementation of https://github.com/nextcloud/groupfolders/pull/1418 but using the new API available in NC 23 for admin delegation. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-11-04Fix wrong object passed to the mount provider in ↵Carl Schwan
VersionsBackend::getAllVersionedFiles `$folder['groups']` is an array from groupId to permission. The mount provider only wants the permission, so since we want to get all the versionned files, just use 31 instead. Before php8, this code was working since using & for an int and an array gave an int. In php8, this now thrown an error. This also include more type hinting that helped me figure out that was wrong. Fix #1725: Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-10-21Cleanup of groupfolder appsCarl Schwan
* More type hinting and throws tag in comments * Remove some deprecations e.g. query => get, query->execute() => executeStatement and executeQuery, ... Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2021-06-17Enforce string for folder id when obtaining the trash folderJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-05-03Only return user result onceJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-04-09Merge pull request #1395 from jngrb/masterJulius Härtl
2021-03-31Revert "fix ACL error: user can not manage acl even assigned in setting"Julius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-03-28Avoid calling getGID() on null when searching for available groups #633 #1096Jan Niklas Grieb (home)
Filter for any non-existing group reference before returning GID and displayname. This enables to continue editing the ACLs despite outdated group references in the groupfolder's permissions. Signed-off-by: Jan Niklas Grieb (home) <jan.grieb@gmail.com>
2021-03-09fix ACL error: user can not manage acl even assign in settingtommy.wu
Signed-off-by: tommy.wu <tommy.wu@mail.ossii.com.tw>
2021-02-25check folder permissions when restoring a trashbin itemRobin Appelman
not just the acl permissions Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-02-25run php-cs-fixer with nextcloud configRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-12-30Add psalmJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-19Close cursor on fetchJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-18Properly get last insert idJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-21Use the proper paremter type for the IN queryRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-211 query to obtain group foldersRoeland Jago Douma
Before we would run this query for each group the user was a member of. Especially on larger instances this can add up quickly. Now it is just 1 query that obtains that same information. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-08-24Improve performance querying group_folders_manageJeff Brown
Signed-off-by: Jeff Brown <thebrillpuff@gmail.com> Co-authored-by: Robin Appelman <robin@icewind.nl>
2020-08-19Remove unused importsMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-07-31Do not fail if no applicable groups are setupJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-11-13Search for users by displaynameJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-07-19Allow to select users and groups for acl managementJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-07-19Add setting for managing ACL rules as regular userJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-14improve performance of listing groupfolders with large filecache tablesRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-03-01Add group-folder-id property to propfind calls and implement group folder ↵Julius Härtl
user/group search Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-03-01enabling of aclsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2019-02-19Followup patch fixing null permissions #267Jan-Jonas Sämann
2019-02-18Added missing type casting in FolderManagerJan-Jonas Sämann
* fixes #267 logging errors * fixed followup error of undefined index 'permissions'
2018-12-11fix compatibility with files_fulltextsearchRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-12-11fix "undefined index parent"Robin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-12-10handle non initialized foldersRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-12-07improve filesystem setup performance with large amounts of foldersRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-11-25add console commands to configure group foldersRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-11-25Trashbin backend for group foldersRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-08-06rename applicable folder to comply with oracle limitationsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-07-02fix getAllFoldersRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-06-29don't trigger fs setup in groupfolder setupv1.2.1Robin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-06-29Add api endpoint to get single folderRobin Appelman
Fixes #132 Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-06-27properly use indexes when querying folder sizeRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-03-08cleanup applicable groups when a group is removedRobin Appelman
Fixes #97 Signed-off-by: Robin Appelman <robin@icewind.nl>