No permission to control access to job nodes
heronog - December 29, 2008 - 02:07
| Project: | Job Posting |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I had a problem where a site wanted to allow registered mebres (or certain roles) to be able to view job nodes, but deny access for anonymous users.
I found that job module uses the "access content" permission to grant access to job nodes so there is no way to control who gets access specifically to job nodes, so I made the appropiate modifications and added the "view job posting" permission to allow the site administrator to grant or deny access.
I attach a patch file. feedback is welcome!
| Attachment | Size |
|---|---|
| job_posting_6.x-1.10-view_job_posting_permission.patch | 268 bytes |

#1
Thanks for the patch. I'll roll this change into the next release.
#2
On closer analysis I'm not sure I should incorporate this change just yet. My main reservation is that adding this might lead to broken implementations as the 'view job posting' permission will have to be changed explicitly or no one but the superadmin will be able to access job posting nodes (whereas setting 'access content' for anonymous users is standard admin setup practice). For this reason I'm inclined to leave it as-is for now but I'll leave your post and patch available for anyone that wants it.
I'm also changing this to 'feature request' as I don't consider this a bug, just preferred behaviour under a particular use case.
#3
Currently, you cannot set role specific access in
admin/user/permissions
However, you can control access / permission at the time of a job posting.
#4
I found the Nodeaccess module to control this, I guess it's better to use both modules than trying to put all the features in Job Posting.
Thanks a lot, I think this is the solution for this issue.
#5