In blackmagictweaks there is another option for permissions other than hiding the field: disabling it. This will do what you want I believe...
do the permission code then do something like: reporter.ondenial = disable i think it is. check the plugin site. (i have this on my installation currently as it is for clients) On Jun 18, 4:25 am, Ben <[email protected]> wrote: > Let me expand a little on this. > > First, I've realised that using CSS for this isn't really possible, > so... > > My ideal situation would be: > > 1. the only valid values that can be put into the 'reporter' field are > the existing users of the system, plus the currently logged in user, > 2. on creating a new ticket, the reporter field defaults to the > current user, and... > 3. only super-users (defined with some permission - I can do that > bit!) can change the reporter field when adding a new ticket. All > other users have to accept the reported field set to themselves. > > Does anyone know how I can achieve this with existing plugins? I've > tried the blackmagictickettweaks plugin but it doesn't quite do what I > need (e.g. if I hide the 'reporter' field it's always hidden, > regardless of permissions, if I set the permissions on that field to > only be super-user then a non-super-user can't set any value (even > themselves) for that field when adding a new ticket). > > Any advice much appreciated! > > Cheers > Ben > > On Jun 16, 12:07 pm, Ben <[email protected]> wrote: > > > > > I could hack the CSS to hide the field but that's hardly the same > > thing. > > > Any way to lock the reporter field to the current authenticated user? > > > Cheers > > Ben -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
