Author: nathangray
New Revision: 55127
URL: http://svn.stylite.de/viewvc/egroupware?rev=55127&view=rev
Log:
Avoid permission errors by doing nothing when user clicks on event they have no permission to view
Modified:
trunk/calendar/js/et2_widget_timegrid.js
trunk/calendar/templates/default/app.css
trunk/calendar/templates/pixelegg/app.css
trunk/calendar/templates/pixelegg/app.less
— trunk/calendar/js/et2_widget_timegrid.js (original)
+++ trunk/calendar/js/et2_widget_timegrid.js Tue Feb 23 23:23:01 2016
@@ -1595,7 +1595,11 @@
result = this.onclick.apply(this, args);
}
-
var event_node = $j(event.event_node);
-
if(event.id && result && !this.disabled && !this.options.readonly &&
-
// Permissions - opening will fail if we try
-
event_node && !(event_node.hasClass('rowNoView'))
-
)
{
if(event.widget_id && this.getWidgetById(event.widget_id))
{
— trunk/calendar/templates/default/app.css (original)
+++ trunk/calendar/templates/default/app.css Tue Feb 23 23:23:01 2016
@@ -584,7 +584,7 @@
background-color: #808080;
}
-.calendar_calEvent:hover{
+.calendar_calEvent:not(.rowNoView):hover{
cursor: pointer;
}
— trunk/calendar/templates/pixelegg/app.css (original)
+++ trunk/calendar/templates/pixelegg/app.css Tue Feb 23 23:23:01 2016
@@ -586,7 +586,7 @@
border-color: #808080;
background-color: #808080;
}
-.calendar_calEvent:hover {
+.calendar_calEvent:not(.rowNoView):hover {
cursor: pointer;
}
/** Multi-line ellipsis */
@@ -1970,9 +1970,6 @@
* background: depending on category (shade)
*/
background-color: #679fd2;
-}
-.calendar_calEvent:hover {
- cursor: pointer;
}
.calendar_calEvent:not([class*=" cat_"]) {
/* Defaults for no category, so we don’t override it */
— trunk/calendar/templates/pixelegg/app.less (original)
+++ trunk/calendar/templates/pixelegg/app.less Tue Feb 23 23:23:01 2016
@@ -867,9 +867,6 @@
*/
background-color: @egw_color_blue_lightest;
}
-.calendar_calEvent:hover{
- cursor: pointer;
-}
.calendar_calEvent:not([class*=" cat_"]) {
/* Defaults for no category, so we don’t override it */
background-color: @egw_color_blue_lightest;
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs