Skip to content

Commit

Permalink
descripción control de acceso
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Mar 24, 2023
1 parent 38df055 commit 763f740
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 96 deletions.
20 changes: 19 additions & 1 deletion app/models/ability.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
# frozen_string_literal: true

class Ability < Cor1440Gen::Ability
GRUPO_DESAPARICION_CASOS = 25

ROLES_CA = [
'Administrar casos. ' +
'Administrar actividades y proyectos. ' +
'Administrar usuarios. ' +
'Administrar documentos en nube. ' +
'Administrar tablas básicas. ', #ROLADMIN
'.',
'Lo mismo que el administrador. ', #ROLDIR
'.',
'Crear actividades, editar y borrar las que cree. ' +
'Si es del grupo Analista de caso administrar casos. ' +
'Administrar documentos en nube', #ROLOP
'.',
'.'
]


GRUPO_DESAPARICION_CASOS = 25
BASICAS_PROPIAS = []


def tablasbasicas
r = (Msip::Ability::BASICAS_PROPIAS -
[["Msip", "oficina"]]
Expand Down
198 changes: 103 additions & 95 deletions db/structure.sql

Large diffs are not rendered by default.

0 comments on commit 763f740

Please sign in to comment.