Remove jsdoc type
This commit is contained in:
parent
dca701ba70
commit
1b7c39a877
|
|
@ -10,8 +10,8 @@ import { unauthorized } from "../errors/DashboardError";
|
||||||
* permissions required to proceed. It allows proceeding if the user has the requisite
|
* permissions required to proceed. It allows proceeding if the user has the requisite
|
||||||
* permissions or denies access by triggering an unauthorized error.
|
* permissions or denies access by triggering an unauthorized error.
|
||||||
*
|
*
|
||||||
* @param {PermissionCode[]} permissions - An array of permissions to check against the current user's permissions.
|
* @param permissions - An array of permissions to check against the current user's permissions.
|
||||||
* @returns {import('hono').Middleware<HonoEnv>} A middleware function for the Hono framework.
|
* @returns A middleware function for the Hono framework.
|
||||||
*/
|
*/
|
||||||
const checkPermission = (...permissions: PermissionCode[]) =>
|
const checkPermission = (...permissions: PermissionCode[]) =>
|
||||||
createMiddleware<HonoEnv>(async (c, next) => {
|
createMiddleware<HonoEnv>(async (c, next) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user