Changeset 125

Show
Ignore:
Timestamp:
19.01.2011 17:16:35 (3 years ago)
Author:
metz
Message:

test

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dippler/trunk/objects/course.php

    r120 r125  
    7474     
    7575    public function canEdit() { 
    76         if ($this->getOwnerEntity()->guid == get_loggedin_userid()) { 
     76        if (isAdministrator() || $this->getOwnerEntity()->guid == get_loggedin_userid()) { 
    7777            return 1; 
    7878        } 
     
    8181     
    8282    public function canApprove() { 
    83         if (isAdministrator() AND $this->approved=="false" ) { 
     83        if (isAdministrator() AND in_array(strtolower($this->approved), array("false", "null") ) ) { 
    8484            return 1; 
    8585        }