Bug 788794 - Normal user can still see obsolete projects in project search result
Summary: Normal user can still see obsolete projects in project search result
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Zanata
Classification: Retired
Component: Component-UI
Version: 1.5-SNAPSHOT
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Carlos Munoz
QA Contact: Alex Eng
URL:
Whiteboard:
Depends On:
Blocks: zanata-1.5.0
TreeView+ depends on / blocked
 
Reported: 2012-02-09 01:11 UTC by Ding-Yi Chen
Modified: 2012-03-07 00:07 UTC (History)
4 users (show)

Fixed In Version: 1.5.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-03-07 00:07:03 UTC
Embargoed:


Attachments (Terms of Use)

Description Ding-Yi Chen 2012-02-09 01:11:55 UTC
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)

How reproducible:
Always

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.
  
Actual results:
Project "TestObsolete" is still visible.
Click on it, then server returns:

  Error

    * Record not found 



Expected results:
Project "TestObsolete" should be invisible for ordinary user.

Comment 1 Carlos Munoz 2012-02-10 05:58:14 UTC
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).

https://github.com/zanata/zanata/commit/65d3be042417f05f4462a8f94752bb9f48c4a4ee

Comment 2 Alex Eng 2012-02-20 23:06:39 UTC
VERIFIED

Comment 3 Alex Eng 2012-02-20 23:19:45 UTC
VERIFIED in Zanata version 1.5.0-alpha-2-SNAPSHOT (20120220-1431). 

Change display condition based on 'view-obsolete' in rules file. 

https://github.com/zanata/zanata/commit/db0ab9f310172d97a48d2e97a08e6cc0ebde9520


Note You need to log in before you can comment on or make changes to this bug.