Hi again every one.
It seems nobody’s going to answer my previous post, but it’s ok. 😊 I’m not complaining! 😉
I’ve got new question instead!
Guys, can anyone help me and point me to the instruction of how do I set permissions on uri basis?! I just don’t get it!!! :(
Here is my situation:
I’ve got 2 roles (admin and user). I’ve got controller with various functions. I’ve got “$this->dx_auth->check_uri_permissions();” string in constructor of this controller. I want to set uri permission for user role so that all users can access this controller and all it’s functions. How can I set this permissions?
I don’t need back end. All I need is to set it once and forget about it. I tried to do it by manually running the following function:
function test_set_perm()
{
// Load model
$this->load->model('dx_auth/permissions', 'permissions');
$allowed_uris = explode("\n", '/shoplist/');
$this->permissions->set_permission_value(1, 'uri', $allowed_uris);
}
But it doesn’t work.
What should I do?