Exemple #1
0
function role_report_user_allowed(Web $w, $path)
{
    return $w->checkUrl($path, "report", null, "*");
}
Exemple #2
0
function role_file_download_allowed(Web $w, $path)
{
    return $w->checkUrl($path, "file", null, "index") || $w->checkUrl($path, "file", null, "path") || $w->checkUrl($path, "file", null, "atthumb") || $w->checkUrl($path, "file", null, "atdel") || $w->checkUrl($path, "file", null, "printview") || $w->checkUrl($path, "file", null, "atfile") || $w->checkUrl($path, "file", null, "thumb");
}
Exemple #3
0
function role_bend_user_allowed(Web $w, $path)
{
    return $w->checkUrl($path, "bend", "workhours", ["index", "editworkentry", "enter", "ajax_getchildcategories", "list"]) || $w->checkUrl($path, "bend", "electricity", ["index"]) || $w->checkUrl($path, "bend", "", "index");
}
Exemple #4
0
function role_inbox_sender_allowed(Web $w, $path)
{
    return $w->checkUrl($path, "inbox", null, '*');
    //preg_match("/inbox(-.*)?\//",$path);
}
Exemple #5
0
function role_task_user_allowed(Web $w, $path)
{
    return $w->checkUrl($path, "task", null, "index") || $w->checkUrl($path, "task", null, "tasklist") || $w->checkUrl($path, "task", null, "edit") || $w->checkUrl($path, "task", null, "ajaxGetExtraDetails") || $w->checkUrl($path, "task", null, "ajaxGetFieldForm") || $w->checkUrl($path, "task", null, "addtime") || $w->checkUrl($path, "task", null, "edittime") || $w->checkUrl($path, "task", null, "updateusergroupnotify") || $w->checkUrl($path, "task", null, "updateusertasknotify") || $w->checkUrl($path, "task", null, "taskweek") || $w->checkUrl($path, "task", null, "taskAjaxSelectbyTaskGroup");
}
Exemple #6
0
function role_comment_allowed(Web $w, $path)
{
    return $w->checkUrl($path, "admin", null, "commnet") || $w->checkUrl($path, "admin", null, "deletecomment") || $w->checkUrl($path, "admin", null, "ajaxSaveComment");
}