CMS  Version 3.9
share.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("report", "report_manager");
3 
4 if(!checkRole("admin,data"))
5 {
6  Fakoli::end("Insufficient privileges to share a report.");
7 }
8 
9 $report_id = checkNumeric($_GET["report_id"]);
10 $shared = checkNumeric($_GET["shared"]);
11 
12 if ($report_id)
13 {
15  $report->shared = $shared;
16  $report->save();
17 }
18 
19 Fakoli::end("OK");
20 ?>
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
Definition: core.inc:1149
$report
Definition: save_report.inc:38
$shared
Definition: share.inc:10
if(!checkRole("admin,data")) $report_id
Definition: share.inc:9