mirror of https://github.com/MISP/MISP
parent
2f790c2f17
commit
5b627c076a
|
@ -279,6 +279,7 @@ class AuthKeysController extends AppController
|
|||
'conditions' => [
|
||||
'AuthKey.id' => $key_id
|
||||
]]);
|
||||
if(!empty($user_id)) $user_id = $user_id[0];
|
||||
return $this->__canCreateAuthKeyForUser($user_id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue