Changeset 125
- Timestamp:
- 19.01.2011 17:16:35 (2 years ago)
- Files:
-
- 1 modified
-
dippler/trunk/objects/course.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dippler/trunk/objects/course.php
r120 r125 74 74 75 75 public function canEdit() { 76 if ( $this->getOwnerEntity()->guid == get_loggedin_userid()) {76 if (isAdministrator() || $this->getOwnerEntity()->guid == get_loggedin_userid()) { 77 77 return 1; 78 78 } … … 81 81 82 82 public function canApprove() { 83 if (isAdministrator() AND $this->approved=="false") {83 if (isAdministrator() AND in_array(strtolower($this->approved), array("false", "null") ) ) { 84 84 return 1; 85 85 }

