John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pirms 3 gadiem
Morris Jobke
f4c1512bb7
Fix typo in @deprecated PHPDoc tag
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 3 gadiem
Morris Jobke
e4f53ff91b
Add typed events for adding and removing a subadmin
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 3 gadiem
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 3 gadiem
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 3 gadiem
Joas Schilling
e24e9ec0a9
Don't loop over all groups to check for subadmins
Signed-off-by: Joas Schilling <coding@schilljs.com>
pirms 4 gadiem
Mikael Hammarin
6ffde74928
Patch to optimize for large installations (>5000 users >20000 groups) where subadmins have access to many of groups (>250)
- UsersController:editUser() calls isUserAccessible() even if the user is admin
This fix reduces API calls to editUser (ex change locale/display name) from >2 minutes (!) to ~3 seconds per call in average.
Signed-off-by: Mikael Hammarin <mikael@try2.se>
pirms 4 gadiem
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>
pirms 4 gadiem
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
2fbad1ed72
Fix (array) indent style to always use one tab
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
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>
pirms 4 gadiem
Roeland Jago Douma
15abcff2a1
Expose subadmin to OCP
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pirms 5 gadiem
John Molakvoæ (skjnldsv)
00122fa027
Use group displayNames in users list
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pirms 6 gadiem
Morris Jobke
6bbea33133
Simplify ternary operator statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Morris Jobke
31c5c2a592
Change @georgehrke's email
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Joas Schilling
55db07a20b
Fix CamelCasing
Signed-off-by: Joas Schilling <coding@schilljs.com>
pirms 7 gadiem
Joas Schilling
ba87db3fcc
Fix others
pirms 8 gadiem
Lukas Reschke
aba539703c
Update license headers
pirms 8 gadiem
Roeland Jago Douma
f52c5b31b6
Move more from \OC to PSR-4
* \OC\OCSClient
* \OC\Preview
* \OC\PreviewManager
* \OC\Repair
* \OC\RepairException
* \OC\Search
* \OC\ServerContainer
* \OC\ServerNotAvailableException
* \OC\ServiceUnavailableException
* \OC\Setup
* \OC\Streamer
* \OC\SubAdmin
* \OC\SystemConfig
* \OC\TagManager
* \OC\Tags
* \OC\TempManager
* \OC\TemplateLayout
* \OC\URLGenerator
* \OC\Updater
pirms 8 gadiem
Thomas Müller
682821c71e
Happy new year!
pirms 8 gadiem
Arthur Schiwon
51ead4e59b
subadmin methods should not return any null user or group
pirms 8 gadiem
Lukas Reschke
c6f6a8758b
Drop OC_SubAdmin and replace usages
pirms 8 gadiem
Roeland Jago Douma
07fe1df8c1
Make \OC\SubAdmin php-5.4 compatible
* Also close some cursors while we are at it
pirms 8 gadiem
Lukas Reschke
8f09d5b67c
Update license headers
pirms 8 gadiem
Roeland Jago Douma
0e9ab13943
New \OC\SubAdmin class
* DI
* Tests
* moved OC_SubAdmin to legacy
* Added to private OC\GroupManager
pirms 9 gadiem
Morris Jobke
ccf47f40aa
Remove unused variables
* should make scrutinizer a lot more happy
* reduces maybe memory footprint
pirms 9 gadiem
Jenkins for ownCloud
b585d87d9d
Update license headers
pirms 9 gadiem
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
pirms 9 gadiem
Jenkins for ownCloud
6a1a4880f0
Updating license headers
pirms 9 gadiem
Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
pirms 10 gadiem
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
pirms 10 gadiem
Lukas Reschke
e930ce6436
Add type hinting
pirms 10 gadiem
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
pirms 10 gadiem
Lukas Reschke
31b1a73e1f
Check if user is admin - bool
There was no "isAdminUser()" function which returned bool. This is
irritiating as there were a loooooooot of places in the code which
checked this itself with `OC_Group::inGroup($uid, 'admin)` - why not
use a function for this?
(Especially if you consider that we might change the group name in the
future, which would lead to problems then)
Additionally, @Raydiation needed such a method for his AppFramework :)
pirms 11 gadiem
Sam Tuke
8b01286a5d
Merged branch 'master'
pirms 11 gadiem
Lukas Reschke
e8afb3d312
Fix a typo
pirms 11 gadiem
Thomas Mueller
3829460ab8
adding space between) and {
pirms 11 gadiem
Bart Visscher
52f2e7112e
Whitespace fixes in lib
pirms 12 gadiem
Georg Ehrke
8c8496aff9
don't allow group admins to change admin's accounts
pirms 12 gadiem
Jörn Friedrich Dreyer
fa3497f6ed
add backticks to SQL, use limit parameter instead of LIMIT SQL
pirms 12 gadiem
Georg Ehrke
11725efd7e
add some hooks for subadmins
pirms 12 gadiem
Georg Ehrke
abb9f52dd7
add isGroupAccessible in OC_SubAdmin
pirms 12 gadiem
Georg Ehrke
05bc541276
add some doc for lib/subadmin.php
pirms 12 gadiem
Georg Ehrke
6e139f16e4
add isUserAccessible method to OC_SubAdmin class
pirms 12 gadiem
Georg Ehrke
e707e94857
subadmins can now add users
pirms 12 gadiem
Georg Ehrke
d0b625352c
some work on subadmins
pirms 12 gadiem