Fix permission issue
This commit is contained in:
parent
fb66bbe32a
commit
8cb4992a4e
@ -6,11 +6,6 @@
|
||||
*/
|
||||
|
||||
redirectIfNotLoggedIn();
|
||||
$user = new User($_SESSION['uid']);
|
||||
if (!$user->hasPermission("HACHEPORTAL_EDIT")) {
|
||||
header("Location: ./app.php?msg=no_permission");
|
||||
die();
|
||||
}
|
||||
|
||||
$editing = false;
|
||||
$data = [
|
||||
|
@ -6,11 +6,6 @@
|
||||
*/
|
||||
|
||||
redirectIfNotLoggedIn();
|
||||
$user = new User($_SESSION['uid']);
|
||||
if (!$user->hasPermission("HACHEPORTAL_VIEW")) {
|
||||
header("Location: ./app.php?msg=no_permission");
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
$payments = $database->select("payments", ['familyid', 'paymentid (id)', 'amount', 'amountpaid', 'date', 'type']);
|
||||
|
@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
redirectIfNotLoggedIn();
|
||||
$user = new User($_SESSION['uid']);
|
||||
|
||||
$where = [];
|
||||
$filter = $Strings->get("Filter", false);
|
||||
|
@ -5,11 +5,6 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
$user = new User($_SESSION['uid']);
|
||||
if (!$user->hasPermission("HACHEPORTAL_VIEW")) {
|
||||
header("Location: ../app.php?msg=no_permission");
|
||||
die();
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="card">
|
||||
|
Loading…
x
Reference in New Issue
Block a user