Age | Commit message (Collapse) | Author |
|
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
cmd".
Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
In order not to "disturb" the DAV-plugin the patch also adds a new
function
FolderManager::getFolderAclEnabled($id)
which just returns the ACL-enabled status. It also slightly optized the
previous state where the DAV-plugin called
getFolder(..., rootStorageId: -1)
which resulted in an unnecessary empty join with the file-cache table.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
This allows to now run psalm in many new parts of the codebase
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Signed-off-by: Tobias Knipping <knipping@tk-schulsoftware.de>
|
|
Expire group folders trashbin
|
|
Fix #930
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Implement Admin delegation for group folder
|
|
The Doctrine DBAL returns a string for a bigint. This causes problems
since most of the code expects an int (QuotaStorage and MountProvider::getMount).
In particular the BackgroundJob for version expiration got broken
because of that.
The only disadvantage is that it will theorically breaks on 32bits
system but since we don't support that and some part of the code were
already expecing an int. This probably won't change anything.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
This is an alternative implementation of https://github.com/nextcloud/groupfolders/pull/1418
but using the new API available in NC 23 for admin delegation.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
VersionsBackend::getAllVersionedFiles
`$folder['groups']` is an array from groupId to permission. The mount
provider only wants the permission, so since we want to get all the
versionned files, just use 31 instead.
Before php8, this code was working since using & for an int and an array
gave an int. In php8, this now thrown an error.
This also include more type hinting that helped me figure out that was
wrong.
Fix #1725:
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
* More type hinting and throws tag in comments
* Remove some deprecations e.g. query => get, query->execute() => executeStatement
and executeQuery, ...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Filter for any non-existing group reference before returning GID and
displayname. This enables to continue editing the ACLs despite
outdated group references in the groupfolder's permissions.
Signed-off-by: Jan Niklas Grieb (home) <jan.grieb@gmail.com>
|
|
Signed-off-by: tommy.wu <tommy.wu@mail.ossii.com.tw>
|
|
not just the acl permissions
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Before we would run this query for each group the user was a member of.
Especially on larger instances this can add up quickly. Now it is just 1
query that obtains that same information.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
|
Signed-off-by: Jeff Brown <thebrillpuff@gmail.com>
Co-authored-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
user/group search
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
|
|
* fixes #267 logging errors
* fixed followup error of undefined index 'permissions'
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Fixes #132
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Fixes #97
Signed-off-by: Robin Appelman <robin@icewind.nl>
|