Closed (duplicate)
Project:
Announcements
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2008 at 03:35 UTC
Updated:
5 Oct 2008 at 19:53 UTC
Hi there,
I think that once an announcement has expired, it should not be possible to view it by everyone but the author (and administrator).
I do not know if you will think that makes sense. I was thinking we could add a flag to the settings form so it could be decided by the administrator whether to go one way or the other.
I'm attaching a patch with the fix to the hook_access function that does the trick.
Let me know if you think the flag would be nice and I'll add it.
Thank you.
Alexis
| Comment | File | Size | Author |
|---|---|---|---|
| announcements-access-6.x-dev.patch | 439 bytes | AlexisWilke |
Comments
Comment #1
AlexisWilke commentedHi Nancy,
I noticed that you applied a fix from another issue in link with hook_access()--see http://drupal.org/node/314118
So this patch may be irrelevant. And it is a good thing if it checks the full proper role access info because I use the same module.
Now, this patch may be slightly different from the other. I'll look into the other patch later.
Thank you.
Alexis
Comment #2
AlexisWilke commentedNancy,
Okay, this is a duplicate of bug
http://drupal.org/node/314118
So we can close this entry. The code from the previous bug report is cleaner.
Thank you.
Alexis