John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 лет назад
Morris Jobke
f4c1512bb7
Fix typo in @deprecated PHPDoc tag
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 лет назад
Morris Jobke
e4f53ff91b
Add typed events for adding and removing a subadmin
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
3 лет назад
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 лет назад
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 лет назад
Joas Schilling
e24e9ec0a9
Don't loop over all groups to check for subadmins
Signed-off-by: Joas Schilling <coding@schilljs.com>
4 лет назад
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>
4 лет назад
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>
4 лет назад
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
2fbad1ed72
Fix (array) indent style to always use one tab
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 лет назад
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>
4 лет назад
Roeland Jago Douma
15abcff2a1
Expose subadmin to OCP
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
5 лет назад
John Molakvoæ (skjnldsv)
00122fa027
Use group displayNames in users list
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
6 лет назад
Morris Jobke
6bbea33133
Simplify ternary operator statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 лет назад
Morris Jobke
31c5c2a592
Change @georgehrke's email
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 лет назад
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 лет назад
Joas Schilling
55db07a20b
Fix CamelCasing
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 лет назад
Joas Schilling
ba87db3fcc
Fix others
8 лет назад
Lukas Reschke
aba539703c
Update license headers
8 лет назад
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
8 лет назад
Thomas Müller
682821c71e
Happy new year!
8 лет назад
Arthur Schiwon
51ead4e59b
subadmin methods should not return any null user or group
8 лет назад
Lukas Reschke
c6f6a8758b
Drop OC_SubAdmin and replace usages
8 лет назад
Roeland Jago Douma
07fe1df8c1
Make \OC\SubAdmin php-5.4 compatible
* Also close some cursors while we are at it
8 лет назад
Lukas Reschke
8f09d5b67c
Update license headers
8 лет назад
Roeland Jago Douma
0e9ab13943
New \OC\SubAdmin class
* DI
* Tests
* moved OC_SubAdmin to legacy
* Added to private OC\GroupManager
9 лет назад
Morris Jobke
ccf47f40aa
Remove unused variables
* should make scrutinizer a lot more happy
* reduces maybe memory footprint
9 лет назад
Jenkins for ownCloud
b585d87d9d
Update license headers
9 лет назад
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
9 лет назад
Jenkins for ownCloud
6a1a4880f0
Updating license headers
9 лет назад
Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
10 лет назад
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
10 лет назад
Lukas Reschke
e930ce6436
Add type hinting
10 лет назад
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
10 лет назад
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 :)
11 лет назад
Sam Tuke
8b01286a5d
Merged branch 'master'
11 лет назад
Lukas Reschke
e8afb3d312
Fix a typo
11 лет назад
Thomas Mueller
3829460ab8
adding space between) and {
11 лет назад
Bart Visscher
52f2e7112e
Whitespace fixes in lib
12 лет назад
Georg Ehrke
8c8496aff9
don't allow group admins to change admin's accounts
12 лет назад
Jörn Friedrich Dreyer
fa3497f6ed
add backticks to SQL, use limit parameter instead of LIMIT SQL
12 лет назад
Georg Ehrke
11725efd7e
add some hooks for subadmins
12 лет назад
Georg Ehrke
abb9f52dd7
add isGroupAccessible in OC_SubAdmin
12 лет назад
Georg Ehrke
05bc541276
add some doc for lib/subadmin.php
12 лет назад
Georg Ehrke
6e139f16e4
add isUserAccessible method to OC_SubAdmin class
12 лет назад
Georg Ehrke
e707e94857
subadmins can now add users
12 лет назад
Georg Ehrke
d0b625352c
some work on subadmins
12 лет назад