add the READ column in the template
restore getPermissions method
move the function to get all permissions of a resource to getResourcePermissions