Add basic permission check to exporter
This commit is contained in:
parent
29fa41666d
commit
6719ef1b3d
@ -2,9 +2,14 @@
|
|||||||
require_once __DIR__ . '/../required.php';
|
require_once __DIR__ . '/../required.php';
|
||||||
|
|
||||||
redirectifnotloggedin();
|
redirectifnotloggedin();
|
||||||
?>
|
|
||||||
|
|
||||||
<form action="lib/reports.php" method="GET" target="_BLANK">
|
if (!account_has_permission($_SESSION['username'], "QWIKCLOCK_MANAGE")) {
|
||||||
|
?>
|
||||||
|
<div class="alert alert-danger"><?php lang("missing permission") ?></div>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<form action="lib/reports.php" method="GET" target="_BLANK">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-sm-6 col-md-4">
|
<div class="col-xs-12 col-sm-6 col-md-4">
|
||||||
<label for="type"><?php lang("report type"); ?></label>
|
<label for="type"><?php lang("report type"); ?></label>
|
||||||
@ -45,4 +50,7 @@ redirectifnotloggedin();
|
|||||||
<input type="hidden" name="code" value="<?php echo $code; ?>" />
|
<input type="hidden" name="code" value="<?php echo $code; ?>" />
|
||||||
|
|
||||||
<button type="submit" class="btn btn-success" id="genrptbtn"><i class="fa fa-download"></i> <?php lang("generate report"); ?></button>
|
<button type="submit" class="btn btn-success" id="genrptbtn"><i class="fa fa-download"></i> <?php lang("generate report"); ?></button>
|
||||||
</form>
|
</form>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user