TT#133053 Fix 500 error on /api/authtokens

* fix typo 'users' to 'user' and
	    'role' to 'roles' which were causing
	    the Internal Server Error

Change-Id: I3cabadafe34d66a429038dcd2c5b0de797cc6ef1
mr10.0
Flaviu Mates 4 years ago
parent 2b144caf2c
commit b4bc1f2a71

@ -67,8 +67,8 @@ sub POST :Allow {
$res->{token} = NGCP::Panel::Utils::Auth::generate_auth_token($self, $c,
$resource->{type},
$c->users->role,
$c->users->id,
$c->user->roles,
$c->user->id,
$resource->{expires} // 10,
);

Loading…
Cancel
Save