This page (revision-2) was last changed on 18-Apr-2023 00:48 by ajp2 

This page was created on 04-Jan-2014 16:59 by Juan Pablo

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Version Date Modified Size Author Changes ... Change note
2 18-Apr-2023 00:48 3 KB ajp2 to previous
1 04-Jan-2014 16:59 2 KB Juan Pablo to last

Difference between version and

At line 38 added 31 lines
! Prevent new user registration
If you want to turn off new user registration, on the wiki server:
{{{
cd /usr/local/tomcat#/webapps/JSPWiki/WEB-INF
}}}
where # is the number for the tomcat directory.
Make a copy of jspwiki.policy:
{{{
cp jspwiki.policy jspwiki.policy.bkup
}}}
This is to recover if you make a mistake.
Edit {{jspwiki.policy}} and comment out "editProfile" in for All section:
{{{
grant principal org.apache.wiki.auth.authorize.Role "All" {
permission org.apache.wiki.auth.permissions.PagePermission "*:*", "view";
permission org.apache.wiki.auth.permissions.WikiPermission "*", "editPreferences";
// permission org.apache.wiki.auth.permissions.WikiPermission "*", "editProfile";
permission org.apache.wiki.auth.permissions.WikiPermission "*", "login";
};
}}}
// is the comment mark.