should now respect Manage, so also edit, own and org events
in the db-update procedure as well.
‏
pull/63/head
noud 2012-11-08 14:19:50 +01:00
parent a2bc237bcd
commit e648817e3d
2 changed files with 5 additions and 3 deletions

View File

@ -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)),

View File

@ -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,