Modified:
/trunk/vanillaapp/views/problems/ranklist.php
/trunk/vanillaapp/views/problems/submissions.php
=======================================
--- /trunk/vanillaapp/views/problems/ranklist.php Sat Jul 10 22:19:20 2010
+++ /trunk/vanillaapp/views/problems/ranklist.php Sat Jul 10 22:19:50 2010
@@ -44,7 +44,7 @@
<script language="javascript">
function hasPermission(row) {
var author = row[2][0];
- if(<?=($this->IsAdmin ? "true" : "false")?>) return true;
+ if(<?=($this->IsAdmin() ? "true" : "false")?>) return true;
<? if($this->Session->IsValid()) { ?>
return author == <?=$this->Session->UserID?>;
<? } else { ?>
=======================================
--- /trunk/vanillaapp/views/problems/submissions.php Sat Jul 10 22:18:10
2010
+++ /trunk/vanillaapp/views/problems/submissions.php Sat Jul 10 22:19:50
2010
@@ -32,7 +32,7 @@
function hasPermission(row) {
var author = row[2][0];
- if(<?=($this->IsAdmin ? "true" : "false")?>) return true;
+ if(<?=($this->IsAdmin() ? "true" : "false")?>) return true;
<? if($this->Session->IsValid()) { ?>
return author == <?=$this->Session->UserID?>;
<? } else { ?>