Skip to content

Instantly share code, notes, and snippets.

@lmuzinic
Created January 30, 2018 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmuzinic/58a532b5d31a5bef791e32efdeb8dd99 to your computer and use it in GitHub Desktop.
Save lmuzinic/58a532b5d31a5bef791e32efdeb8dd99 to your computer and use it in GitHub Desktop.
<?php
class User
{
// ...
public function isAdmin()
{
- if ($this->status === self::ADMIN) {
+ if ($this->status !== self::ADMIN) {
return true;
}
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment