Download & Extend

Add 'access tracker' and 'access own tracker' permissions

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.

AttachmentSize
tracker2-permissions.patch1.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

Version:5.x-1.14» 6.x-1.x-dev
Priority:minor» normal

#3

Patch for 6.x-1.1

AttachmentSize
tracker2.module.patch 999 bytes

#4

Status:active» needs review

#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.

AttachmentSize
510802-tracker2-access.patch 1.63 KB