Revize 2185
Přidáno uživatelem David Raška před asi 11 roky(ů)
freenetis/branches/1.1/application/controllers/members.php | ||
---|---|---|
}
|
||
|
||
// access control
|
||
if ($this->acl_check_view(get_class($this), 'registration'))
|
||
if ($this->acl_check_view(get_class($this), 'registration_export', $member->id))
|
||
{
|
||
$member_links[] = html::anchor(
|
||
'members/registration_export/'.$member->id,
|
||
... | ... | |
Controller::error(RECORD);
|
||
|
||
// access control
|
||
if (!$this->acl_check_view(get_class($this), 'registration', $member_id))
|
||
if (!$this->acl_check_view(get_class($this), 'registration_export', $member_id))
|
||
Controller::error(ACCESS);
|
||
|
||
// creates new form
|
freenetis/branches/1.1/db_upgrades/upgrade_1.1.0~alpha57.php | ||
---|---|---|
<?php defined('SYSPATH') or die('No direct script access.');
|
||
/*
|
||
* This file is part of open source system FreenetIS
|
||
* and it is released under GPLv3 licence.
|
||
*
|
||
* More info about licence can be found:
|
||
* http://www.gnu.org/licenses/gpl-3.0.html
|
||
*
|
||
* More info about project can be found:
|
||
* http://www.freenetis.org/
|
||
*
|
||
*/
|
||
|
||
/**
|
||
* This upgrade is not equal to any of previous upgrades
|
||
*
|
||
* @author David Raška
|
||
*/
|
||
$upgrade_equal_to['1.1.0~alpha57'] = array();
|
||
|
||
/**
|
||
* Adds registration export AXO for regular and registered members
|
||
*
|
||
* @author David Raška
|
||
*/
|
||
$upgrade_sql['1.1.0~alpha57'] = array
|
||
(
|
||
"INSERT INTO axo SELECT MAX(id)+1, 'Members_Controller', 'registration_export', 'Export of registration' FROM axo",
|
||
|
||
"INSERT INTO axo_map (acl_id, section_value, value) VALUES ('38', 'Members_Controller', 'registration_export');",
|
||
|
||
"INSERT INTO acl SELECT MAX(id)+1, 'Regular and registered members can export own registration' FROM acl",
|
||
|
||
"INSERT INTO aco_map SELECT MAX(id), 'view_own' FROM acl",
|
||
|
||
"INSERT INTO aro_groups_map SELECT MAX(id), '22' FROM acl",
|
||
|
||
"INSERT INTO aro_groups_map SELECT MAX(id), '23' FROM acl",
|
||
|
||
"INSERT INTO axo_map SELECT MAX(id), 'Members_Controller', 'registration_export' FROM acl"
|
||
);
|
freenetis/branches/1.1/version.php | ||
---|---|---|
* The current version of FreenetIS.
|
||
* This value must be changed by developers in a new release of FreenetIS.
|
||
*/
|
||
define('FREENETIS_VERSION', '1.1.0~alpha56');
|
||
define('FREENETIS_VERSION', '1.1.0~alpha57');
|
Také k dispozici: Unified diff
Upravy:
- closes #721: Uprava AXO pro export prihlasky clena. Administrator muze exportovat vsem, radny clen a registrovany zajemce muze exportovat vlastni.