summaryrefslogtreecommitdiff
path: root/includes/view/ShiftCalendarShiftRenderer.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-11-12 12:56:10 +0100
committermsquare <msquare@notrademark.de>2016-11-12 12:56:10 +0100
commitc61e888de484c4571113cb46b4e131ddd9975f2f (patch)
treec44aa1b15565443aeeffece47c75a86cb1618b77 /includes/view/ShiftCalendarShiftRenderer.php
parentc10ab2d8d2d2b85925768b93f2847ffd3de72e4a (diff)
change shift coloring
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index e86f7baa..ac29b40d 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -14,8 +14,6 @@ class ShiftCalendarShiftRenderer {
* The shift to render
*/
public function render($shift) {
- global $privileges;
-
$collides = $this->collides();
$info_text = "";
if ($shift['title'] != '') {
@@ -23,9 +21,9 @@ class ShiftCalendarShiftRenderer {
}
list($is_free, $shifts_row) = $this->renderShiftNeededAngeltypes($shift, $collides);
- if (isset($shift['own']) && $shift['own'] && ! in_array('user_shifts_admin', $privileges)) {
+ if (isset($shift['own']) && $shift['own']) {
$class = 'primary';
- } elseif ($collides && ! in_array('user_shifts_admin', $privileges)) {
+ } elseif ($collides) {
$class = 'default';
} elseif ($is_free) {
$class = 'danger';