Closed (fixed)
Project:
Job Posting
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2008 at 02:07 UTC
Updated:
30 Sep 2009 at 17:19 UTC
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!
| Comment | File | Size | Author |
|---|---|---|---|
| job_posting_6.x-1.10-view_job_posting_permission.patch | 268 bytes | heronog |
Comments
Comment #1
gmarus commentedThanks for the patch. I'll roll this change into the next release.
Comment #2
gmarus commentedOn 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.
Comment #3
profjk commentedCurrently, you cannot set role specific access in
admin/user/permissions
However, you can control access / permission at the time of a job posting.
Comment #4
heronog commentedI 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.
Comment #5
gmarus commented