Commit Graph

35 Commits

Author SHA1 Message Date
Julius Härtl
76fd901062 Handle circle deletion event and add cleanup job
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-11 10:24:02 +01:00
Carl Schwan
44481e1c2a Switch from OC::$server->get to OCP\Server::get
And add a bit more typing to some classes + psalm issues

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-12 10:55:36 +02:00
Raul
0c5b1a88a6 Run cs:fix
Signed-off-by: Raul <raul@nextcloud.com>
2022-04-13 12:43:00 +02:00
Raul
815b8597d1 Use numeric typehint instead of int to allow for numeric strings to be passed to find methods. Fixes the psalm check.
Signed-off-by: Raul <raul@nextcloud.com>
2022-04-13 12:39:39 +02:00
Raul
53e3a7ae7f Removed redundant phpDoc block from constructors
Signed-off-by: Raul <raul@nextcloud.com>
2022-04-13 10:43:14 +02:00
Raul
04974d37d6 Replace rowCount() with explicit count primitive function. This is necessary due to sqlite driver always returning 0 on rowCount (this is documented behaviour: https://www.php.net/manual/en/pdostatement.rowcount.php)
Signed-off-by: Raul <raul@nextcloud.com>
2022-04-13 10:38:32 +02:00
Raul Ferreira Fuentes
8399b00a10 Fix Entity class in AclMapper
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com>
2022-04-11 19:46:05 +02:00
Raul Ferreira Fuentes
9244adee30 Various small fixes in mapper queries
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com>
2022-04-11 18:44:27 +02:00
Raul Ferreira Fuentes
ec602f3e15 Update DeckMapper to extend QBMapper instead of deprecated Mapper
Signed-off-by: Raul Ferreira Fuentes <raul@nextcloud.com>
2022-04-11 18:24:41 +02:00
Julius Härtl
c2144373d9 fix: Properly handle limited scope for remapping users
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 08:23:29 +01:00
Julius Härtl
a45e46f80a Allow transfer of single boards
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 08:23:29 +01:00
Julius Härtl
e8ada52c37 Make queries work with the new base mapper
Signed-off-by: Julius Härtl <jus@bitgrid.net>

fix: conflicts
2022-03-22 08:23:27 +01:00
Julius Härtl
fa7fcef470 Just cleanup old ACL rules, there are none for the board owner so nothing to cleanup or persist there
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-03-22 08:23:27 +01:00
Sergey Shliakhov
6106066460 Fix coding styles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Max <max@nextcloud.com>
2022-03-22 08:23:27 +01:00
Sergey Shliakhov
7df4b7c4bf Transfer deck ownership even if target user already participant of a board
https://github.com/nextcloud/deck/pull/1955#issuecomment-640392715
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
2022-03-22 08:23:27 +01:00
Sergey Shliakhov
b45c454ce2 Fix code style
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>
2022-03-22 08:23:26 +01:00
Sergey Shliakhov
19a2aeb5e5 Update docs
Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>

fix: conflicts
2022-03-22 08:23:26 +01:00
Julius Härtl
b657967cac Fix ParamNameMismatch occurences
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-06-10 08:01:27 +02:00
Julius Härtl
2de43a6725 Properly handle if the related board cannot be found in mappers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-13 15:45:31 +01:00
Julius Härtl
f031717a54 Type hint IPermissionMapper
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-11-10 15:25:25 +01:00
Julius Härtl
52febb396c Fix php cs issues
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-22 19:57:19 +02:00
Julius Härtl
6901314382 Remove unused code
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-10-17 01:17:37 +02:00
Julius Härtl
a6b6842e2b No not fail on nonexisting acl users/groups
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-05-03 13:25:58 +02:00
Julius Haertl
3e304a9ff2 Use display name for users and groups
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-04-27 13:08:10 +02:00
Scrutinizer Auto-Fixer
c01bfb5e44 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-01-31 13:01:52 +00:00
Scrutinizer Auto-Fixer
094aa6d636 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-01-31 09:28:59 +00:00
Julius Haertl
f936afd972 Rename permissions in backend 2017-01-19 11:03:33 +01:00
Julius Haertl
f0aa3777b2 Remove IDb occurences 2017-01-09 21:32:40 +01:00
Julius Haertl
c0c4010cf1 Check permissions in frontend 2016-11-06 22:07:37 +01:00
Julius Haertl
1faa3481f8 Cleanup mostly use statements 2016-10-28 00:04:08 +02:00
Julius Haertl
1167ca14a8 Fix not found acls and cleanup mappers 2016-10-28 00:03:00 +02:00
Julius Haertl
29c907ab7f Various fixes 2016-10-14 14:25:26 +02:00
Julius Haertl
5388f2af69 Fix board ordering on rename 2016-08-24 01:58:54 +02:00
Julius Haertl
2deffacd98 Add SharingMiddleware for permission checks and small fixes 2016-08-24 01:22:45 +02:00
Julius Haertl
33e99b9e7c move to PSR-4 2016-08-19 18:10:07 +02:00