Skip to content

Permission checking in templates #11

@davedx

Description

@davedx

Hi there,

I'm using tags for a current project where we need to only allow owners of documents or admins to add or edit tags.

On the server side this was easy to implement as the tags package uses the standard Meteor "allow" method -- I just added the document to the callback and was then able to do my perm checking.

On the client side in the templates this seems less easy, as the tags seem to be alongside the delete and add buttons in one chunk of template. So I was thinking of modifying the template to somehow allow permission checking here too, so users do not think they can add/edit/delete when they actually cannot.

Do you have any suggestions on how to approach this? I'll submit a PR when I've got something useful. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions