Skip to content

Commit 45aaa22

Browse files
committed
ability y assets
1 parent 155bca7 commit 45aaa22

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

app/models/ability.rb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,20 +122,25 @@ def initialize(usuario = nil)
122122
habilidad.can(
123123
[
124124
:read,
125-
:new,
126125
:edit,
127126
:update,
128-
:create,
129-
:importa,
130-
:importarrelatos,
131127
:errores_importacion,
132-
:nuevo,
133-
:nueva,
134128
:destroy,
135129
],
136130
Sivel2Gen::Caso,
137131
{caso_usuario: {usuario_id: usuario.id}}
138132
)
133+
habilidad.can(
134+
[
135+
:new,
136+
:nuevo,
137+
:nueva,
138+
:create,
139+
:importa,
140+
:importarrelatos,
141+
],
142+
Sivel2Gen::Caso
143+
)
139144
else
140145
habilidad.can(
141146
[

public/assets

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/bdhn/si/assets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../assets

0 commit comments

Comments
 (0)