Re: delete a page

Konstantin Chekushin <[email protected]> Thu, 13 Sep 2007 16:28:28 +0300 (GMT+03:00)
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
That good, but where is the button "Delete"? I have changed my policy file:

My "Admin" user in the group "Admin"
And here is the record from policy:

grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.GroupPrincipal "Admin" {
    permission com.ecyrd.jspwiki.auth.permissions.AllPermission "JSPWiki";
};

When I am logged in, I do not see any possibility to remove the page...

After trying I add the record:

grant signedBy "jspwiki",
  principal "Admin" {
    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*", "delete";
};

with no result, for my sorry. I still cannot delete users.

Can some describe, how I can give permissions to remove pages for my principal user Admin, which is in group "Admin"?

Thanks!

> -----Первоначальное сообщение-----
> От: "Claudia Frers" <[email protected]>
> Отправлено: 2007-09-10 14:31:47.593
> Кому: "JSPWiki Users discussion list" <[email protected]>
> Тема: Re: [Jspwiki-users] delete a page
> 
> Tracer that is the whole idea of security. There are certain rights that are
> given to Admins who hopefully with no garuntee know what they are doing.
> Deleting pages means that they are gone forever so only a person with admin
> rights can dio this. You cannot  and should not give this right to an
> authenticated user. You can delete pages by doing it on the harddisk and
> pressing delete or making a backup of them might be better.
> 
> you can give any role all rights by doing this:
> grant signedBy "jspwiki",
>   principal com.ecyrd.jspwiki.auth.authorize.Role "BigBoss" {
>     permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
> "modify,rename";
>     permission com.ecyrd.jspwiki.auth.permissions.GroupPermission "*:*",
> "view";
>     permission com.ecyrd.jspwiki.auth.permissions.GroupPermission"*:<groupmember>",
> "edit";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "createPages,createGroups";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "editPreferences";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "editProfile";
>     permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
> "login";
> };
> 
> or
> grant signedBy "jspwiki",
>   principal com.ecyrd.jspwiki.auth.GroupPrincipal "Admins" {
>     permission com.ecyrd.jspwiki.auth.permissions.AllPermission "Wikihisec";
> };
> 
> Of course you need to create a Admins group or a BigBoss role for this to
> work..
> you can fin all this by searching the jspwiki or here..happy reading:
> http://doc.jspwiki.org/2.4/wiki/Security
> 
> Note no such delete rights.
> 
> On 9/7/07, Tracer7 <[email protected]> wrote:
> >
> >
> > Hallo
> >
> > thank you, for your help,
> > now it works, the anounymous user can only view pages.
> >
> > But I have an other problem with userpermissions:
> >
> > No one can delete a page !
> > There is no delete-Button in the page-info.
> >
> > How can I give rights, that the authenticated user
> > can delete users ?
> >
> > And what is the password of the Admin ?
> > I can´t log in as Admin.
> >
> > thank you
> > Tracer
> > --
> > View this message in context:
> > http://www.nabble.com/delete-a-page-tf4398892.html#a12546110
> > Sent from the JspWiki - User mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > This is the Jspwiki-users mailing list, in which we discuss the
> > stable release (even-numbered, 2.4.x, 2.6.x), and user-issues.
> > For development discussion, please join jspwiki-dev.
> > http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
> > http://www.jspwiki.org/JSPWikiMailingList
> >
> _______________________________________________
> This is the Jspwiki-users mailing list, in which we discuss the
> stable release (even-numbered, 2.4.x, 2.6.x), and user-issues.
> For development discussion, please join jspwiki-dev.
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
> http://www.jspwiki.org/JSPWikiMailingList

-------------------------------------------------------------------------------
http://www.one.lv - Tavs mobilais e-pasts!

Tagad lasi savu e-pastu ar mobilo telefonu - wap.one.lv!