[algospot-judge] r226 committed - fixed problem in haspermission()

0 views
Skip to first unread message

codesite...@google.com

unread,
Jul 11, 2010, 4:28:20 AM7/11/10
to algospo...@googlegroups.com
Revision: 226
Author: jongman
Date: Sat Jul 10 22:19:50 2010
Log: fixed problem in haspermission()
http://code.google.com/p/algospot-judge/source/detail?r=226

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 { ?>

Reply all
Reply to author
Forward
0 new messages