only show "share with others" and "share by link" navigation bar entries if user is allowed to share files
This commit is contained in:
parent
fa260b1649
commit
008498dcad
|
@ -33,21 +33,25 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy());
|
||||||
"name" => $l->t('Shared with you')
|
"name" => $l->t('Shared with you')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
\OCA\Files\App::getNavigationManager()->add(
|
|
||||||
array(
|
if (\OCP\Util::isSharingDisabledForUser() === false) {
|
||||||
"id" => 'sharingout',
|
|
||||||
"appname" => 'files_sharing',
|
\OCA\Files\App::getNavigationManager()->add(
|
||||||
"script" => 'list.php',
|
array(
|
||||||
"order" => 15,
|
"id" => 'sharingout',
|
||||||
"name" => $l->t('Shared with others')
|
"appname" => 'files_sharing',
|
||||||
)
|
"script" => 'list.php',
|
||||||
);
|
"order" => 15,
|
||||||
\OCA\Files\App::getNavigationManager()->add(
|
"name" => $l->t('Shared with others')
|
||||||
array(
|
)
|
||||||
"id" => 'sharinglinks',
|
);
|
||||||
"appname" => 'files_sharing',
|
\OCA\Files\App::getNavigationManager()->add(
|
||||||
"script" => 'list.php',
|
array(
|
||||||
"order" => 20,
|
"id" => 'sharinglinks',
|
||||||
"name" => $l->t('Shared by link')
|
"appname" => 'files_sharing',
|
||||||
)
|
"script" => 'list.php',
|
||||||
);
|
"order" => 20,
|
||||||
|
"name" => $l->t('Shared by link')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue