Fix formatting.
Remove whitespace.
Fix canLink method (see #10548)
Clean code.
Merge pull request #921 from jburel/create-permissions

Create permissions