php - Adding user groups to Luracast Restler API -


i'm trying add user groups in api developed using luracast restler using example class "accesscontrol" implements iauthenticate class restler.

files: https://gist.github.com/anonymous/d6a315d1f29dc7722b7d

the problem i'm having method defined in accesscontrol::__isallowed() so:

resources::$accesscontrolfunction = 'accesscontrol::verifyaccess'; 

accesscontrol::verifyaccess never called, can't use

$m['class']['accesscontrol']['properties']['requires'] 

to read requirements method being called in api.

the token system i've added unique identifier based on number of criteria user gets when post /user/token processed correct information.

how can make work should? according docs restler, should able have method defined did , should return boolean value, does. never gets called, so...

boy, feel stupid. turns out don't need $accesscontrolfunction. had use {@requires ...} instead of {@requires ...} in test.php class.

carry on, people!


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -