Age | Commit message (Collapse) | Author |
|
I deleted vars that are no longer used and sort the namespaces by
ascendant order.
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
Use a consistent way to define api only users using delegation service
with a custom class name.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Check if a user is in the group of the class name of admin delegation
and not by appconfig with the delegated-admins key.
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
cmd".
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
Please, look at the Carl's comments: https://github.com/nextcloud/groupfolders/pull/2072#discussion_r979908298 and https://github.com/nextcloud/groupfolders/pull/2072#discussion_r979907709
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
Following this comment by Carl: https://github.com/nextcloud/groupfolders/pull/2072#discussion_r976413038
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
The DelegatedAdminsMiddleware.php middleware allows users who only have access to the groupfolders API/REST to use the functions of FolderController.php without event using the Delegation Admin from settings.
It's a bit like a 'function overloading' : https://www.wikiwand.com/en/Function_overloading
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
I exloded the isAdmin function in 2 functions : isAdmin() to check if an user is admin or admin from 'delegated-admins' of appconfig
And isSubAdmin() function to check if an user is in the group from delegated-sub-admins of appconfig
Signed-off-by: Baptiste Fotia <fotia.baptiste@arawa.fr>
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
stable23
I transposed the code from the allow-admin-delegation-stable21 branch to allow-admin-delegation-stable23
Signed-off-by: Baptiste Fotia <fotia.baptiste@arawa.fr>
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|