Hello, I would like to restrict the ability to view any ed-classified node to authenticated users, but I am unable to do so with neither the built in role permissions of Drupal, nor through use of the Content Access module. The best I can do is produce a view that states there are zero ads. I would rather the view read with the default "Access Denied" message that anonymous users get when trying to view other privileged content. Am I missing the obvious, or is the mode just not designed that way?
Comments
Comment #1
mcurry commentedI'm not sure if I understand your request. Do you want an access denied message when viewing the /ed_classified (or /ed-classified) category lists? Or are you talking about 'views' (the views module?) Please enumerate all 'views' / URLS that you wish to 'lock down' and describe the types of users you wish to lock out.
I suppose we could modify the module to show an access denied message at /ed_classified if the current user does not have proper permissions - but then, anonymous users and search engines won't find your classified ads, but that may not be an issue for you.)
Comment #2
modctek commentedI was hoping to restrict access to the entire module to only authenticated users. I was less concerned about search engines being able to parse the ads, but the website owner changed their mind, and now allows anyone to view the ads, anonymous or authenticated. The reason I was looking for an "access denied" message rather than "0 ads found" was the zero ads message implies that there are no ads (and hence the site is not being used, ie. nobody cares), when in fact there are plenty, but the viewer doesn't have sufficient rights to view them.
The site owner was concerned that potential members would think that the site is underutilized and be discouraged from signing up.