Fixes #53
Fixes #53

Borrowed permission check code from dashboard view. May be a better way could be to make a decorator and use it in both widgets & dashboard view.
talpor/django-dashing,talpor/django-dashing,talpor/django-dashing