How to restrict viewing of flashnodes by auth users only?
(without any extra module?)

Comments

aloyr’s picture

kaaku, 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.

aloyr’s picture

Status: Active » Needs review
kaakuu’s picture

Thanks 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.

aloyr’s picture

kaaku, 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.

kaakuu’s picture

Yes, 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.