Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1934

Přidáno uživatelem Michal Kliment před více než 11 roky(ů)

Upravy:

- fixes #574 - Nelze zobrazit povolene podsite clena

Zobrazit rozdíly:

freenetis/branches/1.1/application/controllers/allowed_subnets.php
Controller::error(RECORD);
// access control
if (!$this->acl_check_view('Devices_Controller', 'allowed_subnet', $member->id))
if (!$this->acl_check_view('Allowed_subnets_Controller', 'allowed_subnet', $member->id))
Controller::error(ACCESS);
// finds all allowed subnets of member
......
Controller::error(RECORD);
// access control
if (!$this->acl_check_new('Devices_Controller', 'allowed_subnet', $member->id))
if (!$this->acl_check_new('Allowed_subnets_Controller', 'allowed_subnet', $member->id))
Controller::error(ACCESS);
$subnet_model = new Subnet_Model();
......
$member_id = $allowed_subnet->member_id;
// access control
if (!$this->acl_check_delete('Devices_Controller', 'allowed_subnet', $member_id))
if (!$this->acl_check_delete('Allowed_subnets_Controller', 'allowed_subnet', $member_id))
Controller::error(ACCESS);
// success
......
Controller::error(RECORD);
// access control
if (!$this->acl_check_edit('Devices_Controller', 'allowed_subnet', $allowed_subnet->member->id))
if (!$this->acl_check_edit('Allowed_subnets_Controller', 'allowed_subnet', $allowed_subnet->member->id))
Controller::error(ACCESS);
$allowed_subnet->enabled = !$allowed_subnet->enabled;
freenetis/branches/1.1/application/controllers/members.php
{
// allowed subnets are enabled
if (Settings::get('allowed_subnets_enabled') &&
$this->acl_check_view('Devices_Controller', 'allowed_subnet', $member->id))
$this->acl_check_view('Allowed_subnets_Controller', 'allowed_subnet', $member->id))
{
$member_links[] = html::anchor(
'allowed_subnets/show_by_member/'.$member->id,
freenetis/branches/1.1/application/controllers/allowed_subnets_counts.php
Controller::error(RECORD);
// access control
if (!$this->acl_check_edit('Devices_Controller', 'allowed_subnet', $member_id))
if (!$this->acl_check_edit('Allowed_subnets_Controller', 'allowed_subnet', $member_id))
Controller::error(ACCESS);
$form = new Forge(url::base(TRUE) . url::current(TRUE));

Také k dispozici: Unified diff