Last active
December 24, 2015 07:19
-
-
Save ferclaverino/6763408 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="instituciones/{{id}}/suscripciones" auth="responsable-institucion">Suscripciones pendientes</a> | |
<a href="instituciones/{{id}}/addActivity" auth="responsable-institucion">Agregar actividad</a> | |
<a href="instituciones/{{id}}/addOwner?isAdmin=true" auth="responsable-institucion">Nuevo responsable</a> | |
<a href="instituciones/">Ver Todas</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var authorization = new Authorization({{ app.security.token.user.id }}); | |
$("document").ready(function() { | |
institucionQuery.getById({{id}}, function(institucion) { | |
//... | |
authorization.authorizeForInstitution(institucion); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment