Forum Discussion

4 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    11 years ago

    Hi Mark

     

    not sure on your specific use case - but you may be able to use the coreNode object - and the permissions.hasPermission method

     

    permissions.hasPermission("permission_identifier")

     

    Edit any post:          update_message
    Edit own posts:	update_own_message

     

    Hope this helps,

  • MSohm's avatar
    MSohm
    Ace
    11 years ago

    Thanks, but that doesn't mean they can edit every message.  There are settings that only allow roles to edit posts within X minutes from the post date.

     

    Use case is that I don't want the feature to edit the message to appear if they can't really edit it.  It'd be a bad user experience to have that enabled, let them author the update and then have it fail when the user attempts to save the update.

  • MSohm's avatar
    MSohm
    Ace
    11 years ago

    That's exactly what I was looking for.  Thanks!