@@ -931,7 +931,7 @@ public function userDeletedFromGroup($uid, $gid) {
931931 */
932932 public function isOutgoingServer2serverShareEnabled () {
933933 $ result = $ this ->config ->getAppValue ('files_sharing ' , 'outgoing_server2server_share_enabled ' , 'yes ' );
934- return ($ result === 'yes ' ) ? true : false ;
934+ return ($ result === 'yes ' );
935935 }
936936
937937 /**
@@ -941,7 +941,7 @@ public function isOutgoingServer2serverShareEnabled() {
941941 */
942942 public function isIncomingServer2serverShareEnabled () {
943943 $ result = $ this ->config ->getAppValue ('files_sharing ' , 'incoming_server2server_share_enabled ' , 'yes ' );
944- return ($ result === 'yes ' ) ? true : false ;
944+ return ($ result === 'yes ' );
945945 }
946946
947947 /**
@@ -951,6 +951,17 @@ public function isIncomingServer2serverShareEnabled() {
951951 */
952952 public function isLookupServerQueriesEnabled () {
953953 $ result = $ this ->config ->getAppValue ('files_sharing ' , 'lookupServerEnabled ' , 'no ' );
954- return ($ result === 'yes ' ) ? true : false ;
954+ return ($ result === 'yes ' );
955+ }
956+
957+
958+ /**
959+ * Check if it is allowed to publish user specific data to the lookup server
960+ *
961+ * @return bool
962+ */
963+ public function isLookupServerUploadEnabled () {
964+ $ result = $ this ->config ->getAppValue ('files_sharing ' , 'lookupServerUploadEnabled ' , 'yes ' );
965+ return ($ result === 'yes ' );
955966 }
956967}
0 commit comments