v0.12.13 user manager permissions + member event calendar
This commit is contained in:
@@ -39,7 +39,7 @@ function adminMiddleware(req, res, next) {
|
||||
}
|
||||
|
||||
async function teamManagerMiddleware(req, res, next) {
|
||||
if (req.user?.role === 'admin') return next();
|
||||
if (req.user?.role === 'admin' || req.user?.role === 'manager') return next();
|
||||
try {
|
||||
const tmSetting = await queryOne(req.schema,
|
||||
"SELECT value FROM settings WHERE key = 'team_tool_managers'"
|
||||
|
||||
Reference in New Issue
Block a user