summaryrefslogtreecommitdiffstats
path: root/lib/private/Group
Commit message (Collapse)AuthorAgeFilesLines
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-315-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-264-24/+24
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix mismatching docblock return typesChristoph Wurst2020-03-061-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-055-9/+14
| | | | 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>
* Merge pull request #17896 from nextcloud/fix/noid/consider-create-group-resultblizzz2019-11-251-27/+34
|\ | | | | take group creation result into consideration
| * 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>
* | Some php-cs fixesRoeland Jago Douma2019-11-222-3/+3
|/ | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow group displaynames in the database backend (#17221)John Molakvoæ2019-10-052-4/+71
|\ | | | | Allow group displaynames in the database backend
| * Do not allow to have an empty display nameJoas Schilling2019-09-271-0/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Fix DI issueJoas Schilling2019-09-271-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Remove inherited docsJoas Schilling2019-09-271-16/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Allow to set the group display name in the database backendJoas Schilling2019-09-272-1/+38
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Add a displayname to the database group backendJoas Schilling2019-09-271-3/+39
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix DB usersInGroups fetchingRoeland Jago Douma2019-10-021-3/+8
|/ | | | | | | * Follow the interface defaults * Only set limit or offset if they are properly set Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* group display name support (service level + ldap)Arthur Schiwon2019-05-271-0/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add dispatcher events to User and Group objectsJoas Schilling2019-03-012-58/+71
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* allow group backends to mark that a group should now be shown in search dialogsRobin Appelman2019-02-251-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #12419 from ↵Morris Jobke2018-11-121-4/+10
|\ | | | | | | | | nextcloud/bugfix/noid/group-creation-replace-insertIfNotExist Fix UniqueConstraintViolationException while insert into oc_groups
| * Fix UniqueConstraintViolationException while insert into oc_groupsMorris Jobke2018-11-121-4/+10
| | | | | | | | | | | | | | * fixes race condition in insert * fixes potentiaol deadlock Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly escape column name in "createFunction" callMorris Jobke2018-10-161-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix groupExists when a backend provides group detailsRobin Appelman2018-06-261-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Don't pretend we can add/remove users to/from groups when we can'tRobin Appelman2018-06-192-1/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Keep userids as keys on group searchJohn Molakvoæ (skjnldsv)2018-06-151-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Tabs fixJohn Molakvoæ (skjnldsv)2018-05-251-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Added total count for subadminsJohn Molakvoæ (skjnldsv)2018-05-241-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Added disabled count per groupsJohn Molakvoæ (skjnldsv)2018-05-243-4/+65
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Convert group Database backendRoeland Jago Douma2018-04-231-7/+21
| | | | | | This now uses the new interfaces Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove orderBy so the query works correctly on postgresJoas Schilling2018-03-271-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure DI is doneJoas Schilling2018-03-261-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move the group database backend fully to query builderJoas Schilling2018-03-261-32/+54
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use group displayNames in users listJohn Molakvoæ (skjnldsv)2018-03-081-0/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Correctly return the group nameJoas Schilling2018-03-081-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Run updated license header updaterMorris Jobke2017-11-071-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-064-0/+7
| | | | 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-062-0/+6
|\ | | | | Allow group backend to declare users as admins
| * Allow group backend to declare users as adminsKnut Ahlers2017-06-302-0/+6
| | | | | | | | Signed-off-by: Knut Ahlers <knut@ahlers.me>
* | Take IUser instead of UserLukas Reschke2017-08-012-8/+9
|/ | | | 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>
* spaces addedLoki30002017-01-101-1/+1
|
* allowed '0' uidLoki30002017-01-101-2/+2
|
* fix spacesLoki30002017-01-101-1/+1
|
* fix bracketsLoki30002017-01-101-2/+4
|