mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Removed obsolete comment about api keys not being supported (#10622)
no issue I noticed an outdated comment in the codebase ([confirmed by Kevin](https://forum.ghost.org/t/code-comment-says-we-dont-support-admin-api-keys-yet-is-this-true/6344/4?u=grant)). This PR removes it.
This commit is contained in:
parent
eacd9d6e08
commit
51151e9e9e
@ -66,12 +66,6 @@ const authorize = {
|
||||
}));
|
||||
},
|
||||
|
||||
/**
|
||||
* @NOTE:
|
||||
*
|
||||
* We don't support admin api keys yet, but we can already use this authorization helper, because
|
||||
* we have not connected authenticating with admin api keys yet. `req.api_key` will be always null.
|
||||
*/
|
||||
authorizeAdminApi(req, res, next) {
|
||||
const hasUser = req.user && req.user.id;
|
||||
const hasApiKey = req.api_key && req.api_key.id;
|
||||
|
Loading…
Reference in New Issue
Block a user