feat: Adds route-level role filtering. (#3734)
* feat: Adds route-level role filtering. Another layer in the onion of security and performance * fix: Regression in authentication middleware
This commit is contained in:
@@ -276,7 +276,7 @@ class User extends ParanoidModel {
|
||||
.map((c) => c.id);
|
||||
};
|
||||
|
||||
updateActiveAt = (ip: string, force = false) => {
|
||||
updateActiveAt = async (ip: string, force = false) => {
|
||||
const fiveMinutesAgo = subMinutes(new Date(), 5);
|
||||
|
||||
// ensure this is updated only every few minutes otherwise
|
||||
|
||||
Reference in New Issue
Block a user