Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Updating the last part isAdministrator test
  • Loading branch information
Deisss committed Mar 8, 2014
1 parent e9448ef commit 9469a14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ function isAdministrator() {
// userFromAuth is now a $_SESSION array instead of boolean value
$userFromAuth = $app->request()->headers('auth');

// We test, and refuse
// We test, and refuse if the role is not OK
if($userFromAuth['role'] != 'administrator') {
$response = $app->response();
$response->status(403);
$app->status(403);
$app->stop();
}
}

Expand Down

0 comments on commit 9469a14

Please sign in to comment.