mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 12:47:03 +02:00
updated the group handling + revised admin permissions
This commit is contained in:
@ -38,8 +38,6 @@ class ControllerGroupEdit extends Controller {
|
||||
|
||||
if(Registry::get('admin_user') == 1) {
|
||||
|
||||
$this->data['group'] = $this->model_group_group->get_domain_by_id($this->data['id']);
|
||||
|
||||
if($this->request->server['REQUEST_METHOD'] == 'POST') {
|
||||
|
||||
if($this->validate() == true){
|
||||
@ -59,6 +57,7 @@ class ControllerGroupEdit extends Controller {
|
||||
}
|
||||
}
|
||||
else {
|
||||
$this->data['group'] = $this->model_group_group->get_domain_by_id($this->data['id']);
|
||||
$this->data['email'] = $this->model_group_group->get_emails_by_group_id($this->data['id']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user