fix class permission directive

stable
Juanfran 2015-03-16 14:27:52 +01:00
parent 6036331c43
commit ed59aa46e6
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ ClassPermissionDirective = ->
if negation && project.my_permissions.indexOf(permission) == -1
$el.addClass(className)
else if project.my_permissions.indexOf(permission) != -1
else if !negation && project.my_permissions.indexOf(permission) != -1
$el.addClass(className)
else
$el.removeClass(className)