mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-12 06:48:41 +00:00
Fix permission tables
This commit is contained in:
parent
7b0a61d3ed
commit
af0dbbac4a
|
|
@ -114,26 +114,6 @@ class ClientMapper 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(1, 'clientmgmt_client', 'clientmgmt_client', 1, $objId, 1, 1, 1, 1, 1);
|
|
||||||
|
|
||||||
self::$db->con->prepare($query->toSql())->execute();
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
var_dump($e->getMessage());
|
var_dump($e->getMessage());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user