示例#1
0
 /**
  * Returns a list of board_uris where the canEditConfig permission is given.
  *
  */
 public function getBoardsWithConfigRights()
 {
     $boards = [];
     foreach ($this->getPermissions() as $board_uri => $permissions) {
         if ($this->canEditConfig($board_uri)) {
             if ($board_uri == "") {
                 return Board::andCreator()->andOperator()->get();
             } else {
                 $boards[] = $board_uri;
             }
         }
     }
     return Board::whereIn('board_uri', $boards)->andCreator()->andOperator()->get();
 }