feat: update sidebar menu structure to remove resolve function for links and enhance permission checks for ausências and pontos resources
This commit is contained in:
@@ -72,7 +72,7 @@ export const listarMinhasSolicitacoes = query({
|
||||
handler: async (ctx, args) => {
|
||||
await ctx.runQuery(internal.permissoesAcoes.assertPermissaoAcaoAtual, {
|
||||
recurso: 'ausencias',
|
||||
acao: 'criar'
|
||||
acao: 'listar'
|
||||
});
|
||||
|
||||
const solicitacoes = await ctx.db
|
||||
@@ -259,7 +259,7 @@ export const obterNotificacoesNaoLidas = query({
|
||||
handler: async (ctx, args) => {
|
||||
await ctx.runQuery(internal.permissoesAcoes.assertPermissaoAcaoAtual, {
|
||||
recurso: 'ausencias',
|
||||
acao: 'criar'
|
||||
acao: 'listar'
|
||||
});
|
||||
|
||||
const notificacoes = await ctx.db
|
||||
@@ -913,7 +913,7 @@ export const marcarComoLida = mutation({
|
||||
handler: async (ctx, args) => {
|
||||
await ctx.runQuery(internal.permissoesAcoes.assertPermissaoAcaoAtual, {
|
||||
recurso: 'ausencias',
|
||||
acao: 'criar'
|
||||
acao: 'listar'
|
||||
});
|
||||
|
||||
await ctx.db.patch(args.notificacaoId, {
|
||||
|
||||
Reference in New Issue
Block a user