Implmented Drupal permissions for Flag entity.