This service should not be dependent on the ability to access content. The fix:

@@ -25,10 +25,8 @@ function oauthloginprovider_services_resources() {
     'oauthlogin' => array(
       'actions' => array(
         'info' => array(
-          'access callback' => 'user_access',
-          'access arguments' => array('access content'),
+          'access callback' => 'user_is_logged_in',
           'access arguments append' => false,
           'args' => array(),
           'help' => 'Retrieves information about the current user',
           'callback' => 'oauthloginprovider_user_info_action',
         ),

Patch to follow.

CommentFileSizeAuthor
#2 2215705-2-alternate-perm.patch1.09 KBspotzero
#1 2215705.patch518 bytesmatt2000

Comments

matt2000’s picture

StatusFileSize
new518 bytes

As a patch.

spotzero’s picture

StatusFileSize
new1.09 KB

I ran into this problem as well and wrote the attached patch.

Attached is an alternate patch that creates a new permission for calling this service.

Either the patch above or the patch attached are acceptable solutions.

matt2000’s picture

Status: Needs review » Fixed

Thanks. I'll be push up a release with the improved patch today.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.