Skip to content
Snippets Groups Projects
Unverified Commit 6ceabf6c authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Move subscription from all clients to template creation

parent 52b6c02e
No related merge requests found
Meteor.subscribe 'oauthApps'
RocketChat.AdminBox.addOption
href: 'admin-oauth-apps'
i18nLabel: 'OAuth Apps'
......
Template.oauthApp.onCreated ->
@subscribe 'oauthApps'
@record = new ReactiveVar
active: true
......
Template.oauthApps.onCreated ->
@subscribe 'oauthApps'
Template.oauthApps.helpers
hasPermission: ->
return RocketChat.authz.hasAllPermission 'manage-oauth-apps'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment