mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add an option to check the permissions of modules linked to documents or comments
This commit is contained in:
parent
7c963d0ac3
commit
0dd567bc00
3 changed files with 21 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ class documentView extends document
|
|||
$oDocument = DocumentModel::getDocument($document_srl);
|
||||
if(!$oDocument->isExists()) throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
||||
// Check permissions
|
||||
if(!$oDocument->isAccessible()) throw new Rhymix\Framework\Exceptions\NotPermitted;
|
||||
if(!$oDocument->isAccessible(true)) throw new Rhymix\Framework\Exceptions\NotPermitted;
|
||||
// Information setting module
|
||||
//Context::set('module_info', $module_info); //module_info not use in UI
|
||||
// Browser title settings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue