access control rendering is broken
always renders cancel button even when eval.file = null
Submitted by chris melman on 11 February 2013 at 13:04rule page showOrgininalEvasysPDF (eval : Evaluation) { mayView(eval) && eval.evasysPDF != null } define page editOrgininalEvasysPDF(eval : Evaluation) { title{ "Upload Evasys PDF" } var msg := ""; var file : File bmain{ pageHeader{ output(eval.course.name) } horizontalForm("Upload Evasys PDF") { controlGroup("PDF file") { input(file) } formActions{ submit action {eval.evasysPDF := file; return showEvaluation(eval);} [class = "btn btn-primary"] { iOk() "Save" } " " navigate showOrgininalEvasysPDF(eval) [class = "btn"] { iStop() "Cancel" } } } } }
Log in to post comments