Added object level permissions.

To make sure that only the user that created a code snippet is able to update or delete it.