Make delete and clone go through their own modules rather than edit
This commit is contained in:
parent
b4df921ee0
commit
987d799cc5
@ -68,8 +68,8 @@ sub _build_recipe {
|
|||||||
if($self -> check_permission("recipe.edit", $recipe -> {"metadata_id"})) {
|
if($self -> check_permission("recipe.edit", $recipe -> {"metadata_id"})) {
|
||||||
$controls .= $self -> {"template"} -> load_template("list/controls.tem",
|
$controls .= $self -> {"template"} -> load_template("list/controls.tem",
|
||||||
{ "%(url-edit)s" => $self -> build_url(block => "edit" , pathinfo => [ $recipe -> {"id"}]),
|
{ "%(url-edit)s" => $self -> build_url(block => "edit" , pathinfo => [ $recipe -> {"id"}]),
|
||||||
"%(url-clone)s" => $self -> build_url(block => "edit", pathinfo => [ "clone", $recipe -> {"id"} ]),
|
"%(url-clone)s" => $self -> build_url(block => "clone" , pathinfo => [ $recipe -> {"id"}]),
|
||||||
"%(url-delete)s" => $self -> build_url(block => "edit", pathinfo => [ "delete", $recipe -> {"id"}]),
|
"%(url-delete)s" => $self -> build_url(block => "delete", pathinfo => [ $recipe -> {"id"}]),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user