mirror of https://github.com/MISP/MISP
RBAC
should now respect Manage, so also edit, own and org events in the db-update procedure as well. pull/63/head
parent
a2bc237bcd
commit
e648817e3d
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
<?php
|
||||
class DbGroupSchema extends CakeSchema {
|
||||
|
||||
|
||||
public $name = 'DbGroup';
|
||||
|
||||
|
||||
public function before($event = array()) {
|
||||
return true;
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ class DbGroupSchema extends CakeSchema {
|
|||
'modified' => array('type' => 'datetime', 'null' => true, 'default' => NULL),
|
||||
'perm_add' => array('type' => 'boolean', 'null' => true, 'default' => NULL),
|
||||
'perm_modify' => array('type' => 'boolean', 'null' => true, 'default' => NULL),
|
||||
'perm_modify_org' => array('type' => 'boolean', 'null' => true, 'default' => NULL),
|
||||
'perm_publish' => array('type' => 'boolean', 'null' => true, 'default' => NULL),
|
||||
'perm_full' => array('type' => 'boolean', 'null' => true, 'default' => NULL),
|
||||
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
|
||||
|
|
|
@ -6,6 +6,7 @@ CREATE TABLE groups (
|
|||
name VARCHAR(100) NOT NULL,
|
||||
perm_add boolean,
|
||||
perm_modify boolean,
|
||||
perm_modify_org boolean,
|
||||
perm_publish boolean,
|
||||
perm_full boolean,
|
||||
created DATETIME,
|
||||
|
|
Loading…
Reference in New Issue