Changeset 125


Ignore:
Timestamp:
Jan 19, 2011 5:16:35 PM (5 years ago)
Author:
metz
Message:

test

File:
1 edited

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        }
Note: See TracChangeset for help on using the changeset viewer.