Skip to content
Snippets Groups Projects
Commit 8eff291c authored by Peter Rotich's avatar Peter Rotich
Browse files

Remove staff only restriction on ajax controller - access control is on entry...

Remove staff only restriction on ajax controller - access control is on entry point (ajax.php) and exposed methods
parent 7c631452
No related merge requests found
......@@ -26,11 +26,7 @@ require_once (INCLUDE_DIR.'class.api.php');
*/
class AjaxController extends ApiController {
function AjaxController() {
# Security checks first
# --> It is assumed that all AJAX calls will require a login. And
# for now, since client logins are not yet supported, a staff
# login will be required for AJAX calls.
$this->staffOnly();
}
function staffOnly() {
global $thisstaff;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment