diff --git a/js/service/BoardService.js b/js/service/BoardService.js index b7cad27e2..93ee24a23 100644 --- a/js/service/BoardService.js +++ b/js/service/BoardService.js @@ -125,8 +125,8 @@ app.factory('BoardService', function (ApiService, $http, $q) { displayname: ocsItem.label }, permissionEdit: true, - permissionManage: true, - permissionShare: true, + permissionManage: false, + permissionShare: false, type: type }; }; diff --git a/lib/Service/BoardService.php b/lib/Service/BoardService.php index 3eba4ece6..8843cf5ba 100644 --- a/lib/Service/BoardService.php +++ b/lib/Service/BoardService.php @@ -417,15 +417,15 @@ class BoardService { throw new BadRequestException('participant must be provided'); } - if ($edit === false || $edit === null) { + if ($edit === null) { throw new BadRequestException('edit must be provided'); } - if ($share === false || $share === null) { + if ($share === null) { throw new BadRequestException('share must be provided'); } - if ($manage === false || $manage === null) { + if ($manage === null) { throw new BadRequestException('manage must be provided'); } diff --git a/templates/part.board.sidebarView.php b/templates/part.board.sidebarView.php index aee24a5a9..c74755e1c 100644 --- a/templates/part.board.sidebarView.php +++ b/templates/part.board.sidebarView.php @@ -56,13 +56,13 @@ {{ acl.participant.displayname }} - - - - + + + + @@ -71,6 +71,9 @@ t('Discard share')); ?> +
  • + t('Sharing has been disabled for your account.')); ?> +