Fixing permission check on dashboard widgets
Formatting.