<![CDATA[ How to stop general public adding events on myCalendar? - My Forums]]> https://forums.modx.com/thread/?thread=104940 <![CDATA[How to stop general public adding events on myCalendar?]]> https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564257
I would also point out that I've tried the following options:

&allowGuestEdit=`0` 
    &readOnly=`1`


But this also stops admin from being able to add events!]]>
galahad5 Feb 27, 2019, 11:55 AM https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564257
<![CDATA[Re: How to stop general public adding events on myCalendar?]]> https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564263 ]]> galahad5 Feb 27, 2019, 08:34 PM https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564263 <![CDATA[Re: How to stop general public adding events on myCalendar?]]> https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564262 Quote from: BobRay at Feb 27, 2019, 06:03 PM
The easiest method is a simple utility snippet:

Put this tag above the MyCalendar tag on the calendar page

[[!AdminOnly]]


Create this snippet:

<!--?php
/* AdminOnly snippet */

if (! $modx--->user->isMember('Administrator')) {
    return "Sorry, you're not authorized to see this page";
}

return '';


Only members of the Administrator group will see the page. Others will see the "Sorry" message.

Thanks, the problem though is that UI need the general public to see the calendar (and browse through it), I just don't want them being able to add events...?]]>
galahad5 Feb 27, 2019, 08:07 PM https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564262
<![CDATA[Re: How to stop general public adding events on myCalendar?]]> https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564261
I haven't tested this though.]]>
nuan88 Feb 27, 2019, 06:43 PM https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564261
<![CDATA[Re: How to stop general public adding events on myCalendar?]]> https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564260
Put this tag above the MyCalendar tag on the calendar page

[[!AdminOnly]]


Create this snippet:

<?php
/* AdminOnly snippet */

if (! $modx->user->isMember('Administrator')) {
    return "Sorry, you're not authorized to see this page";
}

return '';


Only members of the Administrator group will see the page. Others will see the "Sorry" message.
]]>
BobRay Feb 27, 2019, 06:03 PM https://forums.modx.com/thread/104940/how-to-stop-general-public-adding-events-on-mycalendar#dis-post-564260