Skip to content

Commit

Permalink
PATCH: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup authored Dec 2, 2021
1 parent 6c39f27 commit 87bdb73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ORM/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@
* static $api_access = true;
*
* function canView($member = false) {
* if(!$member) $member = Security::getCurrentUser();
* if (!$member) $member = Security::getCurrentUser();
* return $member->inGroup('Subscribers');
* }
* function canEdit($member = false) {
* if(!$member) $member = Security::getCurrentUser();
* if (!$member) $member = Security::getCurrentUser();
* return $member->inGroup('Editors');
* }
*
Expand Down Expand Up @@ -3051,7 +3051,7 @@ public function can($perm, $member = null, $context = [])
*
* <code>
* $extended = $this->extendedCan('canDoSomething', $member);
* if($extended !== null) return $extended;
* if ($extended !== null) return $extended;
* else return $normalValue;
* </code>
*
Expand Down Expand Up @@ -3489,8 +3489,8 @@ public static function get_by_id($classOrID, $idOrCache = null, $cache = true)
list ($class, $id, $cached) = is_numeric($classOrID)
? [get_called_class(), (int) $classOrID, isset($idOrCache) ? $idOrCache : $cache]
: [$classOrID, (int) $idOrCache, $cache];
if($id < 1) {
return null;
if ($id < 1) {
return null;
}

// Validate class
Expand Down

0 comments on commit 87bdb73

Please sign in to comment.