Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A while back I tested UR Services module with my dev account that has full privileges for every module – but that isn't uid 1. With each of the User Relationships Service Method the server response is simple "Access Denied".
Today I tested this again; this time as well with the uid 1 account. With this account I am able to receive data.
I couldn't find any permissions for UR Services – and as I mentioned the dev account has every permission checked. Something's amiss!
Comment | File | Size | Author |
---|---|---|---|
#5 | ur_service_module_permissions-1058226-3.patch | 3.85 KB | haagendazs |
#2 | ur_service_module_permissions-1058226-2.patch | 3.96 KB | haagendazs |
Comments
Comment #1
yajnin CreditAttribution: yajnin commentedComment #2
haagendazs CreditAttribution: haagendazs commentedI had the same issue while working with the UR Services Module and noticed that none of the services in this module define any access arguments. I created a patch to fix this (and also fix the formatting of the code to make it easier to read). The patch was created from the user_relationships folder.
Comment #4
BerdirYou seem to have created your diff based on the stable information. Don't re-add this information.
Trailing spaces (also in other places). Install http://drupal.org/project/drush to see them in the patch file.
Powered by Dreditor.
Comment #5
haagendazs CreditAttribution: haagendazs commentedHere we go again. Patched against 6.x branch without whitespace (hopefully).
Comment #7
haagendazs CreditAttribution: haagendazs commentedNo idea why this is failing the test. I created the patch with git patch, according to the instructions on this page: http://drupal.org/node/167682/git-instructions/6.x-1.x. I downloaded the 6.x version again and applied the patch with git apply -v [patchname.patch], and that worked fine for me. The patch in #5 should work, if anyone could let me know what I'm doing wrong with creating the patch, I'd appreciate it.
Comment #8
BerdirI guess you made the patch against 6.x-1.x-dev, not 6.x-1.0 :)
Comment #9
Berdir#5: ur_service_module_permissions-1058226-3.patch queued for re-testing.
Comment #10
haagendazs CreditAttribution: haagendazs commentedThanks for helping me out with this!
Comment #11
mrf CreditAttribution: mrf commentedLooking at issues to include in 6.x-1.1
Comment #12
mrf CreditAttribution: mrf commentedI'm not seeing the ur functions listed under resources in the Services UI after applying this patch.
I'm using services 6.x-3.1 and the 6.x dev release of UR.
It is entirely possible I just don't have Services set up correctly... its been a while.