Fix incorrect error call

This commit is contained in:
Chris 2018-11-08 21:45:33 +00:00
parent 99d1579682
commit 3243b4a3f1

View File

@ -182,7 +182,7 @@ sub create {
$self -> {"system"} -> {"roles"} -> user_assign_role($args -> {"metadataid"},
$args -> {"creatorid"},
$roleid)
or return $auth -> self_error($self -> {"system"} -> {"roles"} -> {"errstr"})
or return $self -> self_error($self -> {"system"} -> {"roles"} -> {"errstr"});
# Add the ingredients for the recipe
$self -> _add_ingredients($newid, $args -> {"ingredients"})