Hello,
I have question with remote framework and module permission. Lets say I create a new page called
User Details under
Tools module.
I use remote framework and I hard coded everything to the page. I was wondering how could I check user permission. Is the example below actually sufficient?
Code:
// check permission
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('tools');
// start soap
require('soap_config.php');
$client = new SoapClient(null, array('location' => $soap_location,
doing remote thing here ....
I mean this thing is used for authentication?
Code:
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
//* Check permissions for module
$app->auth->check_module_permissions('tools');
Is it sufficient enough to check whether user is login or not and everything?
Thanks in advance.
Recent comments
15 hours 27 min ago
20 hours 26 min ago
21 hours 52 min ago
22 hours 45 min ago
1 day 28 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 21 hours ago
1 day 22 hours ago