" data-direction="" data-nested="true" >
items as $i => $item) :
- $canEdit = $user->authorise('core.edit', 'com_guidedtours' . '.step.' . $item->id);
- $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || is_null($item->checked_out);
- $canChange = $user->authorise('core.edit.state', 'com_guidedtours' . '.step.' . $item->id) && $canCheckin;
+ $canEditOwn = $canEditOwnTour && $item->created_by == $userId;
+ $canCheckin = $hasCheckinPermission || $item->checked_out == $userId || is_null($item->checked_out);
+ $canChange = $canEditStateTour && $canCheckin;
?>
@@ -186,7 +190,7 @@ class="js-draggable" data-url="" data-direction="
checked_out) : ?>
editor, $item->checked_out_time, 'steps.', $canCheckin); ?>
-
+
escape($item->title); ?>
diff --git a/administrator/components/com_guidedtours/tmpl/tours/default.php b/administrator/components/com_guidedtours/tmpl/tours/default.php
index c44b36f6ffc5e..c2a283abd16e9 100644
--- a/administrator/components/com_guidedtours/tmpl/tours/default.php
+++ b/administrator/components/com_guidedtours/tmpl/tours/default.php
@@ -148,9 +148,10 @@
class="js-draggable" data-url="" data-direction="" data-nested="true" >
items as $i => $item) :
- $canEdit = $user->authorise('core.edit', 'com_guidedtours' . '.tour.' . $item->id);
+ $canEdit = $user->authorise('core.edit', 'com_guidedtours.tour.' . $item->id);
+ $canEditOwn = $user->authorise('core.edit.own', 'com_guidedtours.tour.' . $item->id) && $item->created_by == $userId;
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || is_null($item->checked_out);
- $canChange = $user->authorise('core.edit.state', 'com_guidedtours' . '.tour.' . $item->id) && $canCheckin;
+ $canChange = $user->authorise('core.edit.state', 'com_guidedtours.tour.' . $item->id) && $canCheckin;
?>
@@ -197,7 +198,7 @@ class="js-draggable" data-url="" data-direction="
checked_out) : ?>
editor, $item->checked_out_time, 'tours.', $canCheckin); ?>
-
+
escape($item->title); ?>