mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-14 22:28:41 +00:00
Fix permission tables
This commit is contained in:
parent
d6039e3bff
commit
c06c76d6f7
|
|
@ -82,25 +82,6 @@ class DrawImageMapper extends DataMapperAbstract
|
||||||
if($objId === null || !is_scalar($objId)) {
|
if($objId === null || !is_scalar($objId)) {
|
||||||
return $objId;
|
return $objId;
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = new Builder(self::$db);
|
|
||||||
$query->prefix(self::$db->getPrefix())
|
|
||||||
->insert(
|
|
||||||
'account_permission_account',
|
|
||||||
'account_permission_from',
|
|
||||||
'account_permission_for',
|
|
||||||
'account_permission_id1',
|
|
||||||
'account_permission_id2',
|
|
||||||
'account_permission_r',
|
|
||||||
'account_permission_w',
|
|
||||||
'account_permission_m',
|
|
||||||
'account_permission_d',
|
|
||||||
'account_permission_p'
|
|
||||||
)
|
|
||||||
->into('account_permission')
|
|
||||||
->values($obj->getMedia()->getCreatedBy(), 'draw', 'draw', 1, $objId, 1, 1, 1, 1, 1);
|
|
||||||
|
|
||||||
self::$db->con->prepare($query->toSql())->execute();
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user