Browse Source

only show "share with others" and "share by link" navigation bar entries if user is allowed to share files

tags/v8.0.0alpha1
Bjoern Schiessle 10 years ago
parent
commit
008498dcad
1 changed files with 22 additions and 18 deletions
  1. 22
    18
      apps/files_sharing/appinfo/app.php

+ 22
- 18
apps/files_sharing/appinfo/app.php View File

@@ -33,21 +33,25 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy());
"name" => $l->t('Shared with you')
)
);
\OCA\Files\App::getNavigationManager()->add(
array(
"id" => 'sharingout',
"appname" => 'files_sharing',
"script" => 'list.php',
"order" => 15,
"name" => $l->t('Shared with others')
)
);
\OCA\Files\App::getNavigationManager()->add(
array(
"id" => 'sharinglinks',
"appname" => 'files_sharing',
"script" => 'list.php',
"order" => 20,
"name" => $l->t('Shared by link')
)
);

if (\OCP\Util::isSharingDisabledForUser() === false) {

\OCA\Files\App::getNavigationManager()->add(
array(
"id" => 'sharingout',
"appname" => 'files_sharing',
"script" => 'list.php',
"order" => 15,
"name" => $l->t('Shared with others')
)
);
\OCA\Files\App::getNavigationManager()->add(
array(
"id" => 'sharinglinks',
"appname" => 'files_sharing',
"script" => 'list.php',
"order" => 20,
"name" => $l->t('Shared by link')
)
);
}

Loading…
Cancel
Save