summaryrefslogtreecommitdiff
path: root/includes/view/ShiftTypes_view.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/view/ShiftTypes_view.php')
-rw-r--r--includes/view/ShiftTypes_view.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/view/ShiftTypes_view.php b/includes/view/ShiftTypes_view.php
index 72d119ff..634f9760 100644
--- a/includes/view/ShiftTypes_view.php
+++ b/includes/view/ShiftTypes_view.php
@@ -6,8 +6,7 @@
*/
function ShiftType_name_render($shifttype)
{
- global $privileges;
- if (in_array('shifttypes', $privileges)) {
+ if (auth()->can('shifttypes')) {
return '<a href="' . shifttype_link($shifttype) . '">' . $shifttype['name'] . '</a>';
}
return $shifttype['name'];