You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
any user without rights to manage content in a calendar will receive this message each time they'll click somewhere in a blank frame/cell.
For a smoother experience, would it be possible to receive no message, no action in return to a simple click in the cell of a day when a user has no permission to create or edit events?
The text was updated successfully, but these errors were encountered:
punkyard
changed the title
"you're not allowed to do this action"
REQ: no "you're not allowed to do this action"
Dec 4, 2022
@luke- I confrim there was the bug.
Fixed in PR #348.
The problem was because the JS object FullCalendar options are initialized from data attributes, but if some data attribute is passed as boolean false then such html attribute is not rendered at the html element at all, see yii\helpers\BaseHtml::renderTagAttributes():
if (is_bool($value)) {
if ($value) {
$html .= "$name";
}
}
So I just converted all boolean data options into integer format so now they are rendered like data-can-create="0" and the JS object FullCalendar is initialized with proper options.
Hi
any user without rights to manage content in a calendar will receive this message each time they'll click somewhere in a blank frame/cell.
For a smoother experience, would it be possible to receive no message, no action in return to a simple click in the cell of a day when a user has no permission to create or edit events?
The text was updated successfully, but these errors were encountered: