Update views.py

Error on previous commit on permissions grant