An HTTP error 403 occurred.
http://www.sitename.com/flag/flag/hotel_flag/38?destination=entityform/3...
I've that bug i don't know why , maybe someone can help me ?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1902006.flag_.flagging-page-access.patch | 1.32 KB | joachim |
Comments
Comment #1
spelcheck commentedWhat I've found is that if 'view published content' isn't checked for a particular role, that role will get 403 when trying to use flags. I'm running into the same issue, though mine is a flag using the User entity. I was hoping 'view published content' wouldn't be necessary as it doesn't involve content, only users.
My usage for flag is to have essentially a user in a restricted role (not able to view published content) be able to flag another user as 'request a sponsor'. The user they flagged gets a notification of a Sponsor Request and then flags them back under another 'Sponsor this user' flag. This triggers escalation of roles so that the user can 'view published content'.
Maybe the developer could comment on this?
Comment #2
spelcheck commentedWorkaround is to keep 'view published content' checked for that role, and instead use https://www.drupal.org/project/node_view_permissions to limit viewing permissions for every content type individually.
Comment #3
joachim commentedConfirming this.
The problem is that the paths for flagging don't take this possibility into account:
Comment #4
joachim commentedHere's a patch. Let's see what the testbot says.
Comment #5
joachim commentedTestbot happy, so let's go with this.