Joas Schilling
89ed2c37bf
Update share type constant usage
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Christoph Wurst
28f8eb5dba
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
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>
6 years ago
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Roeland Jago Douma
c007ca624f
Make phpunit8 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Roeland Jago Douma
e9c972f708
Fix share tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Morris Jobke
6a06745e57
Disable failing test in legacy sharing tests
* seems to be a race condition
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
f4fd0224db
Do not use \OCP\DB anymore
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Roeland Jago Douma
04ece69a33
Cleanup OC_Group usage a bit
This is deprecated internal stuff. Should not be used anymore.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Joas Schilling
3f0b2d148d
Move tests to PSR-4
10 years ago
Roeland Jago Douma
92abb5f23d
Fix tests
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Scrutinizer Auto-Fixer
0f1be1b601
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
10 years ago
Thomas Müller
3bb6dcea64
Apply DB group annotation ...
10 years ago
Robin Appelman
20cad09f7f
Add tests for FileInfo owner
10 years ago
Morris Jobke
b945d71384
update licence headers via script
11 years ago
Joas Schilling
594f5b6a29
Add visibility to test methods
11 years ago
Vincent Petry
fb0fef78f4
Add test case when owner renames shared folder
11 years ago
Vincent Petry
547c4b9a9f
Add unit test for getUsersSharingFile
This is to test if the user list and paths are correct, even when a
recipient renamed the received shared folder
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Bjoern Schiessle
15ae6b47ed
replace hook with storage wrapper
11 years ago
Bjoern Schiessle
b6f63e9b3d
don't delete share table entries for the unique name if re-share permission was removed
11 years ago
Morris Jobke
d41082f4d6
first step to drop \OCP\Config:: in favour of IConfig
11 years ago
Joas Schilling
2c39aec8cb
Replace deprecated constant with new class constant
11 years ago
Joas Schilling
76ebd3a050
Make apps/ extend the \Test\TestCase and fix overwritten methods
11 years ago
Thomas Müller
f776bcd4a0
remove unnecessary require calls - the ownCloud class loader is supposed to take care of this
11 years ago
Bjoern Schiessle
6e7acb8ae0
some small fixed, suggested by scrutinizer
12 years ago
Bjoern Schiessle
52b6469b0c
call \OCP\Share::getItemsSharedWithUser() to get exclude list, this way all checks are executed, e.g. to check if the share is really visible
12 years ago
Bjoern Schiessle
9105e17307
unit tests for grouping of shares pointing to the same source
12 years ago
Bjoern Schiessle
c25915cde4
update unit tests with configurable share folder
12 years ago
Bjoern Schiessle
86d7371d0c
fix unshareFromSelf()
12 years ago
Robin Appelman
42a362f249
Fix phpdoc and comments
12 years ago
Bjoern Schiessle
bf5e9357fc
don't allow to share single files with delete permissions, user should only be possible to unshare a single file but never to delete it
12 years ago
Bjoern Schiessle
12338e0ef0
allow admin to disable sharing for specific groups of users
12 years ago
Bjoern Schiessle
5f403f3e92
move the mount point up if a share is mounted to a subfolder and the subfolder no longer exists
12 years ago