Roundup Tracker - Issues

Issue 1296429

Title: classhelp should check permissions
Type: rfe Severity: normal
Components: Web interface Versions:
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: richard, schlatterbeck, stefan
Priority: normal Keywords:

Created on 2005-09-20 14:06 by schlatterbeck, last changed 2016-06-27 01:04 by rouilj.

msg3389 Author: [hidden] (schlatterbeck) Date: 2005-09-20 14:06
currently classhelp will display a "(list)" link even
if not edit_ok() -- this should probably be changed,
otherwise the check would have to be added manually to
each call of classhelp.
if not edit_ok classhelp should return an empty string.
For backward-compatibility reasons this behavior could
be made optional.
msg3733 Author: [hidden] (stefan) Date: 2009-06-17 15:31
Indeed, I have recently run into this, too.
I think this reveals a logic error:
The window may display tracker help, or it may provide a form to select
among possible values. Which of the two it is depends on context (such
as whether or not the user has edit rights).

As the edit permissions aren't available from inside the help context
(at that point we don't know the originating item, only the property),
we can't conditionalize the display of form elements there as we would
do in normal item templates.
Thus, I would suggest to move this decision into the main item page
(where the help link appears), and then choose a different template,
depending on whether this is to be a 'help' display, or a value selector.
Date User Action Args
2016-06-27 01:04:18rouiljsetcomponents: + Web interface, - None
2009-06-17 15:31:02stefansetnosy: + stefan, richard
messages: + msg3733
2005-09-20 14:06:14schlatterbeckcreate