Wow, that's great. Thanks a million! :o)
Is there an equally easy way to prevent people from being able to
delete pages that they are allowed to edit?
--- In [EMAIL PROTECTED], pp <[EMAIL PROTECTED]> wrote:
> "Neovalis" <[EMAIL PROTECTED]> wrote:
>
> > Is there any way to prevent users from deleting folders in "News
&
> > Articles" while still allowing them to create and edit pages
inside?
> >
> > My issue is that there is no way to "undelete" a folder or page
with
> > the revision controls. This is a potential disaster considering
the
> > mentality of users providing content to my site.
>
> Midgard itself has no such feature :(
> But it may be easily done on application level.
> The easiest way (IMO) is to create to groups:
> - editors
> - power editors
>
> so , code should looks like:
>
> <?php
>
> if(mgd_is_member($power_editors, $user->id))
> {
> $object->delete();
> }
>
> ?>
>
>
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]