Sorry if I'm being thick here, but I've looked and looked. Is there an API call to get the contact id of the logged-in user?
What I need to do is check whether an activity has been authored by the logged in user (in order to show or hide an edit button, in an angular extension).
If there is a way of restricting people from editing (but not from viewing) CiviCase activities that weren't created by them, that would be even better, but I fear it will be easier to do the above.
Cheers
checkPerm()
function? It might not be fine-grained enough for your needs, but ... Check egang/crmMailing/EditMailingCtrl.js
andang/crmMailing/EditMailingCtrl/workflow.html
. It seems to readCRM.permissions
which is populated on page load?