diff options
author | Julius Härtl <jus@bitgrid.net> | 2017-06-30 14:18:16 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2017-06-30 14:18:16 +0200 |
commit | b82164e602d92d7812191a004c0f174bda73fa5b (patch) | |
tree | a2aa2139a5882e0ce967e8c791d86cd4dca5de28 /lib/private/CapabilitiesManager.php | |
parent | 01093604d30b1639f5e23a7be408bc7d387e39ef (diff) | |
download | nextcloud-server-b82164e602d92d7812191a004c0f174bda73fa5b.tar.gz nextcloud-server-b82164e602d92d7812191a004c0f174bda73fa5b.zip |
Simplify if condition for public capabilities
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/CapabilitiesManager.php')
-rw-r--r-- | lib/private/CapabilitiesManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/CapabilitiesManager.php b/lib/private/CapabilitiesManager.php index 173760fe20f..baab63c213d 100644 --- a/lib/private/CapabilitiesManager.php +++ b/lib/private/CapabilitiesManager.php @@ -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 { |