Fixes #4934 - Checks widget edit permissions in actions

Ticket: http://trac.elgg.org/ticket/4934