mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-01-11 11:28:42 +00:00
bug fixes and permission tests
This commit is contained in:
parent
67ecfeffca
commit
38f1cce2cd
|
|
@ -211,7 +211,18 @@ final class BackendController extends Controller
|
|||
{
|
||||
$view = new View($this->app->l11nManager, $request, $response);
|
||||
|
||||
$card = KanbanCardMapper::get()->where('id', (int) $request->getData('id'))->execute();
|
||||
$card = KanbanCardMapper::get()
|
||||
->with('tags')
|
||||
->with('tags/title')
|
||||
->with('media')
|
||||
->with('createdBy')
|
||||
->with('comments')
|
||||
->with('comments/media')
|
||||
->with('comments/createdBy')
|
||||
->where('id', (int) $request->getData('id'))
|
||||
->where('tags/title/language', $response->getLanguage())
|
||||
->execute();
|
||||
|
||||
$accountId = $request->header->account;
|
||||
|
||||
if ($card->createdBy->getId() !== $accountId
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ $columns = $board->getColumns();
|
|||
?>
|
||||
<div class="row">
|
||||
<?php $i = 0; foreach ($columns as $column) : $i++; $cards = $column->getCards(); ?>
|
||||
<div id="kanban-column-<?= $i; ?>" class="col-xs-12 col-md-6 col-lg-3 box kanban-column" draggable="true">
|
||||
<div id="kanban-column-<?= $i; ?>" class="col-xs-12 col-md-6 col-lg-3 box kanban-column">
|
||||
<header><?= $this->printHtml($column->name); ?></header>
|
||||
<?php $j = 0; foreach ($cards as $card) : $j++;
|
||||
$url = \phpOMS\Uri\UriFactory::build('{/prefix}kanban/card?{?}&id=' . $card->getId());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user