Please try now.
I'm not sure if this is exactly what OP needs though. It adds a permission for a user to create a group and assign it to a category. Not exactly the same thing as approval.
I want to access the user ID of the the logged in user and the user I'm visiting. Is this possible with a widget or do I have to write a plugin?
The logged in user should be app.user.uid
, if you are visiting a user, the id should be ajaxify.data.theirid
Here's a small script for you.
<span id="myid" style="display:none;">My uid: </span>
<span id="theirid" style="display:none;">Their uid: </span>
<script>
if (app.user.uid) {
$('#myid').append(app.user.uid)
$('#myid').show()
}
if (ajaxify.data.theirid) {
$('#theirid').append(ajaxify.data.theirid)
$('#theirid').show()
}
</script>