Welcome Guest, Not a member yet? Register   Sign In
check_uri_permissions() with subfolder/controller/action how to?
#1

[eluser]seonet[/eluser]
Hi,

I try to create a common dashboard/admin for some user permissions like admin, superadmin, moderation...
I choose dx_auth for users management...
I create admin folder for all admin controller files but unable check permission Sad


Code:
function check_uri_permissions($allow = TRUE)
{
....
// Get variable from current URI
$controller = '/'.$this->ci->uri->rsegment(1).'/';
if ($this->ci->uri->rsegment(2) != '')
{
    $action = $controller.$this->ci->uri->rsegment(2).'/';
}
else
{
    $action = $controller.'index/';
}

Please help me a/some solution(s)
Thanks


Messages In This Thread
check_uri_permissions() with subfolder/controller/action how to? - by El Forum - 12-28-2009, 12:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB