summaryrefslogtreecommitdiffstats
path: root/lib/private/Group/Manager.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(admin role): fix old and wrong way to determine whether user is adminArthur Schiwon2024-02-191-1/+2
| | | | | | | | | - fixes Settings knowing who is an admin of non-local group backend groups - obsoletes and removes a little old, deprecated code - double checks proper parameter type on Group\Manager::isAdmin - also fixes legacy OC_User code to check whether user is an admin Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-3/+3
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* refactor: Repalce array_search with in_array in lib/Christoph Wurst2023-11-221-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move new methods to a new interface in OCPCôme Chilliet2023-09-051-5/+17
| | | | | | | This avoids breaking compatibility for group backends not based on ABackend abstract class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add batch methods in user backendsCarl Schwan2023-09-051-10/+55
| | | | | | This allows for faster group search with significantly less DB traffic Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix!: Remove symfony EventDispatcherInterface from GroupJoas Schilling2023-07-271-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* revert public interface back to the original types, just cast them before ↵Robin Appelman2023-05-111-5/+5
| | | | | | passing the nulls to the backends Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix default values and type hints for GroupManager::searchRobin Appelman2023-05-111-2/+2
| | | | | | ints really are ints Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add group display name cacheAnna Larch2022-11-281-2/+15
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-9/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix types in the Group ManagerRoeland Jago Douma2021-03-031-5/+5
| | | | | | | | | Psalm found an issue. However the issue found was because of lying docblocks. Fixed those and did some typing to make it all better. For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for adding and removing a subadminMorris Jobke2020-10-281-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont get the group details if we only ask for the idRobin Appelman2020-05-071-21/+30
| | | | | | | currenty when getting the groups for a user, the full group object is always created (and cached) even if only the groupid is required Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix autocomplete suggestions with numeric user idsJoas Schilling2019-11-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* reformat code for @skjnldsv <3Arthur Schiwon2019-11-251-16/+22
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix documentation, get and createGroup may return nullArthur Schiwon2019-11-251-4/+4
| | | | | | * also have stricter checks in place Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* take group creation result into considerationArthur Schiwon2019-11-251-9/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add dispatcher events to User and Group objectsJoas Schilling2019-03-011-32/+31
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix groupExists when a backend provides group detailsRobin Appelman2018-06-261-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use group displayNames in users listJohn Molakvoæ (skjnldsv)2018-03-081-0/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Run updated license header updaterMorris Jobke2017-11-071-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Plugins infrastructure in User_LDAPVinicius Cubas Brand2017-11-031-2/+11
| | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* Merge pull request #5571 from Luzifer/5570_backend_adminMorris Jobke2017-09-061-0/+5
|\ | | | | Allow group backend to declare users as admins
| * Allow group backend to declare users as adminsKnut Ahlers2017-06-301-0/+5
| | | | | | | | Signed-off-by: Knut Ahlers <knut@ahlers.me>
* | Take IUser instead of UserLukas Reschke2017-08-011-4/+4
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* filter missing groups in share providerRobin Appelman2017-06-121-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use DIJoas Schilling2017-03-171-8/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-171-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Skip null groups in group manager (#26871) * Skip null groups in group manager * Also skip null groups in group manager's search function * Add more group null checks in sharing code * Add unit tests for null group safety in group manager * Add unit tests for sharing code null group checks * Added tests for null groups handling in sharing code * Ignore moveShare optional repair in mount provider In some cases, data is inconsistent in the oc_share table due to legacy data. The mount provider might attempt to make it consistent but if the target group does not exist any more it cannot work. In such case we simply ignore the exception as it is not critical. Keeping the exception would break user accounts as they would be unable to use their filesystem. * Adjust null group handing + tests * Fix new group manager tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adding group display name supportVincent Petry2016-12-221-3/+13
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Group fixup (#24621)Roeland Douma2016-05-171-1/+1
| | | | | | | | * Move used OC_Group_xx to \OC\Group * Add (deprecated) legacy wrapper in legacy, OC_Group_xx * Replace deprecated use of OC_Group_xx with \OC\Group\xx
* Move \OC\Group to PSR-4Roeland Jago Douma2016-05-011-0/+351