I use g2 and this application delegate (if I disable g2 everything works)
class conf_ApplicationDelegate {
function getPermissions(&$record){
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
if ( !isset($user) ) return Dataface_PermissionsTool::READ_ONLY();
$role = $user->val('Role');
return Dataface_PermissionsTool::getRolePermissions($role);
}
}
and this permission.ini
.
.
.
[READ ONLY]
view in rss=1
view = 1
link = 1
list = 1
calendar = 1
view xml = 1
show all = 1
find = 1
navigate = 1
ajax_load = 1
find_list = 1
find_multi_table = 1
rss = 1
export_csv = 1
export_xml = 1
export_json = 1
view related records=1
related records feed=1
expandable=1
find related records=1
link related records=1
show hide columns = 1
.
.
.
to get read access and ability to export to not authenticated users,
but that users users cant export in no formats (css and xml)
I have the 'export' button, but nothing sub export menu.
I use g2 and this application delegate (if I disable g2 everything works) class conf_ApplicationDelegate { function getPermissions(&$record){ $auth =& Dataface_AuthenticationTool::getInstance(); $user =& $auth->getLoggedInUser(); if ( !isset($user) ) return Dataface_PermissionsTool::READ_ONLY(); $role = $user->val('Role'); return Dataface_PermissionsTool::getRolePermissions($role); } }
and this permission.ini . . .
[READ ONLY] view in rss=1 view = 1 link = 1 list = 1 calendar = 1 view xml = 1 show all = 1 find = 1 navigate = 1 ajax_load = 1 find_list = 1 find_multi_table = 1 rss = 1 export_csv = 1 export_xml = 1 export_json = 1 view related records=1 related records feed=1 expandable=1 find related records=1 link related records=1 show hide columns = 1 . . .
to get read access and ability to export to not authenticated users, but that users users cant export in no formats (css and xml)
I have the 'export' button, but nothing sub export menu.
If I log as editor I can export data.
probably I miss something?
Thanks in advance, PB