Needs review
Project:
Flash Node
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2009 at 16:50 UTC
Updated:
3 Oct 2009 at 01:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
aloyr commentedkaaku, here is a simple patch that adds the 'access flash nodes' permission. you need to go and enable that permission on authenticated users.
this is my first patch, so i apologize in advance if i didn't do it perfectly by the book. patch should still work.
Comment #2
aloyr commentedComment #3
kaakuu commentedThanks a lot for the quick and useful reply.
I was also able to do this (before I saw this reply) with http://drupal.org/node/594342#comment-2108016, though that needs to be tested more.
Comment #4
aloyr commentedkaaku, i read your solution and it looks like you are trying to hard-code the unauth user into not having access to the node. that seems fine, if that is what you want.
what did was implement a more generic 'access flash nodes' permission that integrates with drupal's hook_perm & hook_access and that other people could use, if available in the module.
since what you are trying to do is use the permissions on the arcade module, you could still use the same principles of this patch and apply them to the same hooks in that module.
Comment #5
kaakuu commentedYes, the generic solution provided by you is the way to go.
Your solution can actually help others too who are looking to do such access restriction, and I think this should be incorporated in the next release. Thanks again.