[ewiki] Create flag redux
- From: Andy Fundinger <andy@xxxxxxxxxxx>
- To: "'ewiki@xxxxxxxxxxxxx'" <ewiki@xxxxxxxxxxxxx>
- Date: Mon, 17 May 2004 10:34:59 -0400
I've been workingi with the create flag some and I think I've found a better
way to set it. Instead of a simple flag we can set it to the id of the page
being created. This is compatible with any simple check and provides the
perm plugins with more information about what page to give extra rigts on.
The code patch is to replace:
#-- internal "create" action / used for authentication requests
if ($action == "edit") {
$ewiki_config["create"] = !$data["version"] || !$data["created"] &&
!$data["flags"];
}
With:
#-- internal "create" action / used for authentication requests
if (($action == "edit")&&(($data["version"]==0) && !isset($pf_page))) {
$ewiki_config["create"] = $id;
}
Any comments Mario? Can I commit this?
Andy
- Follow-Ups:
- [ewiki] Re: Create flag redux
- From: Mario Salzer
Other related posts:
- » [ewiki] Create flag redux
- » [ewiki] Re: Create flag redux
- » [ewiki] Re: Create flag redux
- [ewiki] Re: Create flag redux
- From: Mario Salzer