Revize c2e44ab0
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/aro_groups.php | ||
---|---|---|
|
||
$count = $model_groups_aro_map->count_rows_by_group_id($group->id);
|
||
|
||
if ($group->id == 21)
|
||
if ($group->id == Aro_group_Model::ALL)
|
||
{
|
||
$rows[$i + 1] = '<tr><td style="width:400px">'
|
||
. $ret . __('' . $group->name)
|
||
... | ... | |
if (!$group->id)
|
||
Controller::error(RECORD);
|
||
|
||
// cannot delete group with some childrens
|
||
if (!$group->is_deletable())
|
||
{
|
||
status::warning('Cannot delete group - this group is protected against deletion');
|
||
url::redirect('aro_groups/show_all');
|
||
}
|
||
|
||
// cannot delete group with some childrens
|
||
if ($group->count_childrens())
|
||
{
|
||
status::warning('Cannot delete group - it has at least one children group');
|
||
url::redirect('access_rights/show_groups');
|
||
url::redirect('aro_groups/show_all');
|
||
}
|
||
|
||
$group->transaction_start();
|
Také k dispozici: Unified diff
Release 1.0.12