Closed (won't fix)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Actions integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2012 at 04:26 UTC
Updated:
22 Oct 2012 at 11:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
bojanz commentedThen this is a support request for the Flag module, which provides the mentioned action (flag_node_action).
As for a component not appearing, you either didn't create it properly (first param needs to be the entity type such as "node", or just "entity'), or it's a permissions problem (try retesting as admin).
Comment #2
quicksketchFlag does not provide an option to do this. Flag always runs as the user who is currently on the site.
Comment #3
Desi Raaj commentedok thank you
Comment #4
joachim commentedMaking this a feature request, in case someone wants to work on it.
Comment #5
joachim commentedThat falls in the realm of flag delegation, which has cropped up in other issues.
Overall, this is something I'd rather was tackled by a separate contrib module that provides various things for flagging things on behalf of other users. See #1473716: Manipulating per-user flags as another account.
Comment #6
luketsimmonsHi all,
So I kinda spent time working on this a month back and didn't have time to post it up.
Attached is an include file with all the actions hooks used for creating a custom flag that will bypass the check for the user who set the flag being the one actioning the unflag.
It's possibly a bit rough around the edges, but it allowed me to set up a flag action to use with a VBO view that meant the admin user (or user with permission to run the VBO) could unflag content flagged by other users. The use case was for people to report content by flagging it, then admins unflagging when report was cleared. Similar to Flag abuse, but we used Flag note with it and Flag abuse meant resetting flags on the content, however we required multiple flagging from different users to be reviewed individually.
Anyway have a look, see what you think. It's loaded with a module_load_include in a custom module.
Thanks,
luke
Comment #7
luketsimmonsHa, hey joachim,
Apologies, I think we must have been typing our posts at the same time, I didn't see your update!
Should we just leave my example here as I see you have linked back to this thread from #1473716: Manipulating per-user flags as another account ?
Thanks,
luke