Allow supervisors to view opposition reports, not only admins
Change-Id: Ib089d2b7b784828fdb0ab6559ca02f4cf2b60735
This commit is contained in:
parent
0da9284647
commit
169df83554
|
@ -136,7 +136,8 @@ public class FinalSeminarDetailsPanel extends Panel {
|
|||
return item.getModelObject().getOpponentReport() != null;
|
||||
}
|
||||
};
|
||||
MetaDataActionStrategy.authorize(oppCon, Roles.ADMIN);
|
||||
//Students are not allowed to view other students opposition reports
|
||||
MetaDataActionStrategy.authorize(oppCon, Roles.EMPLOYEE);
|
||||
item.add(oppCon);
|
||||
|
||||
String reportTitle = "";
|
||||
|
@ -148,7 +149,7 @@ public class FinalSeminarDetailsPanel extends Panel {
|
|||
oppCon.add(new FileOpenLink("open", item.getModelObject().getOpponentReport()));
|
||||
oppCon.add(new AjaxLink<Void>("deleteOppositionReport"){
|
||||
private static final long serialVersionUID = 1L;
|
||||
{ //Extra safeguard should someone later decide that the surrounding container should be visible to all
|
||||
{
|
||||
MetaDataActionStrategy.authorize(this, Roles.ADMIN);
|
||||
this.add(new JavascriptEventConfirmation("onclick", "Do you really want to delete this user-uploaded report?"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user