Cleaned up Codebase after finishing Tutorial on php and adding files, styles some logic for LearningPlattform Projekt
This commit is contained in:
parent
1b0b12b655
commit
cbabe10ee9
22 changed files with 16 additions and 3419 deletions
|
|
@ -10,8 +10,8 @@
|
|||
return $_SERVER['REQUEST_URI'] === $value;
|
||||
}
|
||||
|
||||
function authorize($condition) {
|
||||
function authorize($condition, $status = Response::FORBIDDEN) {
|
||||
if (! $condition) {
|
||||
abort(Response::FORBIDDEN);
|
||||
abort($status);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue