From 741b26aa176b34d0359a2b89dd6d8293fcdf2b3d Mon Sep 17 00:00:00 2001 From: intrigeri Date: Thu, 1 Jan 2009 16:38:16 +0100 Subject: remove: implemented a new canremove hook; use it in the po plugin Signed-off-by: intrigeri --- doc/plugins/write.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/plugins') diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index eb50ca4ef..e20cce763 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -321,6 +321,14 @@ This hook should avoid directly redirecting the user to a signin page, since it's sometimes used to test to see which pages in a set of pages a user can edit. +### canremove + + hook(type => "canremove", id => "foo", call => \&canremove); + +This hook can be used to implement arbitrary access methods to control when +a page can be removed using the web interface (commits from revision control +bypass it). It works exactly like the `canedit` hook. + ### editcontent hook(type => "editcontent", id => "foo", call => \&editcontent); -- cgit v1.2.3