mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Don't require user to have role in permissions/me
This commit is contained in:
@@ -49,7 +49,7 @@ router.get(
|
||||
router.get(
|
||||
'/me',
|
||||
asyncHandler(async (req, res, next) => {
|
||||
if (!req.accountability?.user || !req.accountability?.role) {
|
||||
if (!req.accountability?.user) {
|
||||
throw new InvalidCredentialsException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user