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
1 day 10 hours ago
1 day 13 hours ago
2 days 1 hour ago
2 days 3 hours ago
2 days 7 hours ago
2 days 14 hours ago
2 days 23 hours ago
3 days 1 hour ago
3 days 9 hours ago
3 days 10 hours ago