Fix incorrect error call
This commit is contained in:
parent
99d1579682
commit
3243b4a3f1
@ -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"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user