mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Simplify if condition for public capabilities
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
01093604d3
commit
b82164e602
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class CapabilitiesManager {
|
|||
}
|
||||
|
||||
if ($c instanceof ICapability) {
|
||||
if(!$public || ($public && $c instanceof IPublicCapability)) {
|
||||
if(!$public || $c instanceof IPublicCapability) {
|
||||
$capabilities = array_replace_recursive($capabilities, $c->getCapabilities());
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue