Red Hat Bugzilla – Bug 788794
Normal user can still see obsolete projects in project search result
Last modified: 2012-03-06 19:07:03 EST
Description of problem:
Normal user can still see obsolete projects by deliberately search for it.
Version-Release number of selected component (if applicable):
Zanata version 1.5-SNAPSHOT (20120209-0922)
Steps to Reproduce:
0. Sign in as an admin
1. Create a project TestObsolete
2. Change its status to obsolete
3. Sign out, and Sign in as an ordinary user.
4. Type "TestObsolete" in project search field.
Project "TestObsolete" is still visible.
Click on it, then server returns:
* Record not found
Project "TestObsolete" should be invisible for ordinary user.
Added filtering of obsolete projects on the project search results. Admin users can still elect to see these projects when searching.
Also changed the way the project link is displayed on the results, to be in line with the project status (same way it's being done in the main project list).
VERIFIED in Zanata version 1.5.0-alpha-2-SNAPSHOT (20120220-1431).
Change display condition based on 'view-obsolete' in rules file.