[otrs-cvs] ITSMChangeManagement/Kernel/Output/HTML TicketMenuITSMChange.pm, 1.9, 1.10 ITSMChangeMenuTimeSlot.pm, 1.1, 1.2 ITSMChangeMenuGeneric.pm, 1.7, 1.8 ITSMWorkOrderMenuWithPermissionFromChange.pm, 1.8, 1.9 ITSMWorkOrderMenuWithTakePermission.pm, 1.3, 1.4 ITSMChangeMenuWorkOrdersNeeded.pm, 1.7, 1.8 ITSMWorkOrderMenuGeneric.pm, 1.5, 1.6

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/ITSMChangeManagement/Kernel/Output/HTML
In directory lancelot:/tmp/cvs-serv11963/Kernel/Output/HTML

Modified Files:
	TicketMenuITSMChange.pm ITSMChangeMenuTimeSlot.pm 
	ITSMChangeMenuGeneric.pm 
	ITSMWorkOrderMenuWithPermissionFromChange.pm 
	ITSMWorkOrderMenuWithTakePermission.pm 
	ITSMChangeMenuWorkOrdersNeeded.pm ITSMWorkOrderMenuGeneric.pm 
Log Message:
Added optional Action parameter to Permission functions to simplify future developments for the permission modules based on the current action.

Author: ub

Index: TicketMenuITSMChange.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/Output/HTML/TicketMenuITSMChange.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -2 -u -d -r1.9 -r1.10
--- TicketMenuITSMChange.pm	28 Oct 2010 12:51:28 -0000	1.9
+++ TicketMenuITSMChange.pm	5 Feb 2013 20:24:55 -0000	1.10
@@ -1,5 +1,5 @@
 # --
 # Kernel/Output/HTML/TicketMenuITSMChange.pm - ITSMChange specific module for the ticket menu
-# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -82,4 +82,5 @@
         my $Access = $Self->{ChangeObject}->Permission(
             Type   => $FrontendConfig->{Permission},
+            Action => $Param{Config}->{Action},
             UserID => $Self->{UserID},
             LogNo  => 1,

Author: ub

Index: ITSMChangeMenuTimeSlot.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/Output/HTML/ITSMChangeMenuTimeSlot.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -2 -u -d -r1.1 -r1.2
--- ITSMChangeMenuTimeSlot.pm	30 Dec 2009 13:49:23 -0000	1.1
+++ ITSMChangeMenuTimeSlot.pm	5 Feb 2013 20:24:55 -0000	1.2
@@ -2,5 +2,5 @@
 # Kernel/Output/HTML/ITSMChangeMenuTimeSlot.pm - Menu module with check
 # whether there are workorders and whether the change has not started yet
-# Copyright (C) 2003-2009 OTRS AG, http://otrs.com/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -78,4 +78,5 @@
         $Access = $Self->{ChangeObject}->Permission(
             Type     => $RequiredPriv,
+            Action   => $Param{Config}->{Action},
             ChangeID => $Param{Change}->{ChangeID},
             UserID   => $Self->{UserID},

Author: ub

Index: ITSMChangeMenuGeneric.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/Output/HTML/ITSMChangeMenuGeneric.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -2 -u -d -r1.7 -r1.8
--- ITSMChangeMenuGeneric.pm	16 Feb 2012 15:27:08 -0000	1.7
+++ ITSMChangeMenuGeneric.pm	5 Feb 2013 20:24:55 -0000	1.8
@@ -1,5 +1,5 @@
 # --
 # Kernel/Output/HTML/ITSMChangeMenuGeneric.pm
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -76,4 +76,5 @@
         $Access = $Self->{ChangeObject}->Permission(
             Type     => $RequiredPriv,
+            Action   => $Param{Config}->{Action},
             ChangeID => $Param{Change}->{ChangeID},
             UserID   => $Self->{UserID},

Author: ub

Index: ITSMWorkOrderMenuWithPermissionFromChange.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/Output/HTML/ITSMWorkOrderMenuWithPermissionFromChange.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -2 -u -d -r1.8 -r1.9
--- ITSMWorkOrderMenuWithPermissionFromChange.pm	11 Nov 2011 16:40:44 -0000	1.8
+++ ITSMWorkOrderMenuWithPermissionFromChange.pm	5 Feb 2013 20:24:55 -0000	1.9
@@ -1,5 +1,5 @@
 # --
 # Kernel/Output/HTML/ITSMWorkOrderMenuWithPermissionFromChange.pm
-# Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -73,8 +73,10 @@
         # check permissions, based on the required privilege
         $Access = $Self->{ChangeObject}->Permission(
-            Type     => $RequiredPriv,
-            ChangeID => $Param{WorkOrder}->{ChangeID},
-            UserID   => $Self->{UserID},
-            LogNo    => 1,
+            Type        => $RequiredPriv,
+            Action      => $Param{Config}->{Action},
+            ChangeID    => $Param{WorkOrder}->{ChangeID},
+            WorkOrderID => $Param{WorkOrder}->{WorkOrderID},
+            UserID      => $Self->{UserID},
+            LogNo       => 1,
         );
     }

Author: ub

Index: ITSMWorkOrderMenuWithTakePermission.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/Output/HTML/ITSMWorkOrderMenuWithTakePermission.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -2 -u -d -r1.3 -r1.4
--- ITSMWorkOrderMenuWithTakePermission.pm	19 Oct 2010 15:56:15 -0000	1.3
+++ ITSMWorkOrderMenuWithTakePermission.pm	5 Feb 2013 20:24:55 -0000	1.4
@@ -1,5 +1,5 @@
 # --
 # Kernel/Output/HTML/ITSMWorkOrderMenuWithTakePermission.pm
-# Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -72,4 +72,5 @@
         $Access = $Self->{WorkOrderObject}->Permission(
             Type               => $RequiredPriv,
+            Action             => $Param{Config}->{Action},
             PermissionRegistry => 'ITSMWorkOrder::TakePermission',
             WorkOrderID        => $Param{WorkOrder}->{WorkOrderID},

Author: ub

Index: ITSMChangeMenuWorkOrdersNeeded.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/Output/HTML/ITSMChangeMenuWorkOrdersNeeded.pm,v
retrieving revision 1.7
retrieving revision 1.8
diff -2 -u -d -r1.7 -r1.8
--- ITSMChangeMenuWorkOrdersNeeded.pm	19 Mar 2010 10:13:16 -0000	1.7
+++ ITSMChangeMenuWorkOrdersNeeded.pm	5 Feb 2013 20:24:55 -0000	1.8
@@ -1,5 +1,5 @@
 # --
 # Kernel/Output/HTML/ITSMChangeMenuWorkOrdersNeeded.pm - Menu with check whether there are workorders
-# Copyright (C) 2003-2010 OTRS AG, http://otrs.com/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -77,4 +77,5 @@
         $Access = $Self->{ChangeObject}->Permission(
             Type     => $RequiredPriv,
+            Action   => $Param{Config}->{Action},
             ChangeID => $Param{Change}->{ChangeID},
             UserID   => $Self->{UserID},

Author: ub

Index: ITSMWorkOrderMenuGeneric.pm
===================================================================
RCS file: /home/cvs/ITSMChangeManagement/Kernel/Output/HTML/ITSMWorkOrderMenuGeneric.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -2 -u -d -r1.5 -r1.6
--- ITSMWorkOrderMenuGeneric.pm	23 Nov 2009 13:30:43 -0000	1.5
+++ ITSMWorkOrderMenuGeneric.pm	5 Feb 2013 20:24:55 -0000	1.6
@@ -1,5 +1,5 @@
 # --
 # Kernel/Output/HTML/ITSMWorkOrderMenuGeneric.pm
-# Copyright (C) 2003-2009 OTRS AG, http://otrs.com/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -76,4 +76,5 @@
         $Access = $Self->{WorkOrderObject}->Permission(
             Type        => $RequiredPriv,
+            Action      => $Param{Config}->{Action},
             WorkOrderID => $Param{WorkOrder}->{WorkOrderID},
             UserID      => $Self->{UserID},
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.