summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting
diff options
context:
space:
mode:
authorUdo Walter2017-04-10 19:53:28 +0200
committerUdo Walter2017-04-10 19:53:28 +0200
commit12fec381898ce5c1d5bef7a9b6bf3fcca36addf4 (patch)
tree9c3b47ee1c3c390d7654f984c125c39cb96ffe7e /modules-available/statistics_reporting
parent[permission-manager] moved multiple code, added text-search to rolesTable (diff)
downloadslx-admin-12fec381898ce5c1d5bef7a9b6bf3fcca36addf4.tar.gz
slx-admin-12fec381898ce5c1d5bef7a9b6bf3fcca36addf4.tar.xz
slx-admin-12fec381898ce5c1d5bef7a9b6bf3fcca36addf4.zip
[permissionmanager] changed description to tooltips
Diffstat (limited to 'modules-available/statistics_reporting')
-rw-r--r--modules-available/statistics_reporting/page.inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules-available/statistics_reporting/page.inc.php b/modules-available/statistics_reporting/page.inc.php
index 6bd908a5..4845d5be 100644
--- a/modules-available/statistics_reporting/page.inc.php
+++ b/modules-available/statistics_reporting/page.inc.php
@@ -124,7 +124,12 @@ class Page_Statistics_Reporting extends Page
Render::addTemplate('columnChooser', $data);
$data['data'] = $this->fetchData(GETDATA_PRINTABLE);
- Render::addTemplate('table-' . $this->type, $data);
+
+ if (User::hasPermission("table.view.$this->type"))
+ Render::addTemplate('table-' . $this->type, $data);
+ else
+ Message::addError('main.no-permission');
+
}
}