Posted by bluetegu on July 5, 2009 at 6:14pm
| Project: | Tracker 2 |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Hi,
Attached is a patch that adds the above permissions. I needed those so maybe others may find it useful.
(BTW, by default there is a view that overrides the global tracker URL, so either set permissions in the view or disable the view to control access to this URL).
Comments appreciated.
| Attachment | Size |
|---|---|
| tracker2-permissions.patch | 1.05 KB |
Comments
#1
Hi Bluetegu,
Thanks for your patch. I'm currently using Drupal 6 so I create an other one very similar to yours.
http://drupal.org/node/762962
Gael
#2
#3
Patch for 6.x-1.1
#4
#5
The patch in #3 didn't work for me, in allowing non-admin users with appropriate permissions to access their own tracker.
access arguments should get an array of permissions. Since we want logic in there, I made it a callback. Actually, there was already a
_tracker2_user_access(), not being used, so I've modified and used that.