UI > Tasks > Bug

hide editTask functions, if insufficient rights / #1114

Summary

open
May 18, 2006
60 min ... 4 hours
May 18, 2006 / pixtur
Oct 13, 2006 / pixtur
 

Attached files

No files uploaded
This is very tricky because the rights for this depends on projects and there lists are normally project independent (like search results).

There are two approaches for this:
  • For some important edit functions (edit tasks and milestones) check rights when building list (e.g. in list_tasks::__construct())
  • Introduce a global variable g_cur_project and some new rights for pages RIGHT_EDIT_PROJECT_ITEMS. This solution is more a hack and is probably not desirable.


Issue report

Minor
Not available
 

4 Comments

pixtur

Jul 18, 2006
Hi Kyle...
What's your plan on this one? Maybe if you go for this task you can also solve a feature with the search-dialog:

Normally search results in the current project should be rated much higher. Eg. If I have three projects on my installation. I am in the second project and hit ALT-S for searching and enter "gfx", in the search result weighting results of the second project should rated 3x higher.

This could be done by adding an addition prj parameter to the search-tab action.

Drop me a comment for more details.


tom

kyle

Jul 18, 2006
Reply to Hi Kyle...
Hey Tom,

I have been looking into this one still. Sorry it's taking so long. I'm still trying to get oriented with the code structure. I spent a little bit of time looking at the feature you mentioned, and I can take care of that with this. I guess let me know if there's anything else you could use.

Kyle

pixtur

Jul 18, 2006
Do not hesitate to ask...
So parts of the code are pretty complex. So if you have any questions, do not hesitate to ask. Probably I could give you some hints.

tom

pixtur

Aug 6, 2006
Hi Kyle
Any news on this one?

 

Comment / Update