Add SharingMiddleware for permission checks and small fixes

This commit is contained in:
Julius Haertl
2016-08-24 01:22:45 +02:00
parent 33e99b9e7c
commit 2deffacd98
21 changed files with 452 additions and 115 deletions

View File

@@ -66,13 +66,7 @@ class BoardService {
public function find($userId, $boardId) {
$board = $this->boardMapper->find($boardId);
if ($board->getOwner() === $userId)
return $board;
else
return null;
// FIXME: [share] Check for user permissions
return $board;
}
public function create($title, $userId, $color) {

View File

@@ -51,7 +51,6 @@ class LabelService {
public function find($userId, $labelId) {
$label = $this->labelMapper->find($labelId);
// FIXME: [share] Check for user permissions
return $label;
}