Joas Schilling
db8267db26
Use the new method everywhere
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Christoph Wurst
cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Julius Härtl
e7249de145
Make the groupId url encoded
Signed-off-by: Julius Härtl <jus@bitgrid.net>
6 years ago
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* 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>
6 years ago
Joas Schilling
653628c8fb
Allow to set the group display name in the database backend
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Arthur Schiwon
4915d64de8
ignore non existing users when retrieving details of group members
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
7 years ago
Joas Schilling
f0d48554d3
Fix user and group listing with users that have an integer user id
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
Robin Appelman
290b5b5461
show error message when group exists
Signed-off-by: Robin Appelman <robin@icewind.nl>
8 years ago
John Molakvoæ (skjnldsv)
a53dbb8c0b
New user support, provisionning api and design fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
cc2d58a850
Keep userids as keys on group search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
ddd1c8bc86
Disabled fix since new users list
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
10c135ca34
Added disabled count per groups
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
Joas Schilling
348171f311
Use abstract subclass so members can be defined
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
John Molakvoæ (skjnldsv)
762002ec2e
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
c103aaaf25
Trait bump
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
b023bfe38f
Fixed tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
4011ea97b1
Cast types directly
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
f4e84e1727
Limit and offset
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
68ae4394f7
Api, return users details by groups
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
John Molakvoæ (skjnldsv)
5f38cfbc80
Return groups displayname in provisioning api
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
8 years ago
Roeland Jago Douma
24b58a7683
Make the provisioning api app strict
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
6d4731024a
Some app fixes of phpstorm inspections
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Joas Schilling
3c1e7e5ada
Make deleting a group compatible with ocs v2
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
bea85adc08
Require sudo mode on the provisioning API
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Roeland Jago Douma
432e7c93c6
Move Groups over to OCSController
* Take advantage of the AppFramework
* Fix tests
10 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
Roeland Jago Douma
f9e0e3d972
Fix Warnings Provisioning API
* OC_OCS_Result is deprecated
* getMock is deprecated in phpunit 5.4
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Joas Schilling
2a05035339
Move Provisioning api to PSR-4 ( #24510 )
* Move app to PSR-4
* Fix setUp method
* Fix the tests
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Tom Needham
3327857c1a
Update log message when error occurs during addGroup
10 years ago
Tom Needham
673a8a1e4a
Remove unnecessary group name validation
10 years ago
Roeland Jago Douma
6dcaac7e2c
Return empty list if group does not have subadmins
Instead of throwing an error just return an empty list. Since that is
actually what it is.
Fixes #19789
10 years ago
Roeland Jago Douma
61425b7621
Moved grouptest over to pure unit tests
10 years ago
Lukas Reschke
c6f6a8758b
Drop OC_SubAdmin and replace usages
10 years ago
Lukas Reschke
8f09d5b67c
Update license headers
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Lukas Reschke
a7f132a964
Add proper PHPDoc
Makes my IDE happier when going through that file.
11 years ago
Roeland Jago Douma
b41bccd385
Check for userSession->getUser() === null
11 years ago
Roeland Jago Douma
ed1f034e6b
Fix groups
11 years ago
Roeland Jago Douma
97d79202ac
[provisioning_api] OC_User to IUserSession
11 years ago
Roeland Jago Douma
b745e75737
[provisioning_api] Moved groups away from static stuff
11 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Roeland Jago Douma
7a8072e958
Move core apps from OC_Log::write to OCP\Util
11 years ago
Joas Schilling
3f3f8c2f99
Fix usage of deprecated private constants
11 years ago