mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 06:01:23 -04:00
Move code to delete users and add/remove users from groups into the
model.
This commit is contained in:
@@ -22,4 +22,12 @@ class Group_Model extends ORM {
|
||||
|
||||
var $rules = array(
|
||||
"name" => "required|length[4,255]");
|
||||
|
||||
/**
|
||||
* @see ORM::delete()
|
||||
*/
|
||||
public function delete($id=null) {
|
||||
module::event("group_before_delete", $this);
|
||||
parent::delete($id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user