Check if the user has the correct permission before adding block weight.
Merge pull request #5 from Mo-k-tec/4-permission

Check if the user has the correct permission before adding block weight.