| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function grantAllPermissions($id) |
||
| 16 | { |
||
| 17 | \DB::table('cms_privileges_roles')->insert([ |
||
| 18 | 'cms_modules_id' => $id, |
||
| 19 | 'cms_privileges_id' => cbUser()->cms_privileges_id, |
||
|
|
|||
| 20 | 'can_see_module' => 1, |
||
| 21 | 'can_create' => 1, |
||
| 22 | 'can_read' => 1, |
||
| 23 | 'can_edit' => 1, |
||
| 24 | 'can_delete' => 1, |
||
| 25 | ]); |
||
| 27 | } |