Added 2.1.5 support for permissions
Fixed dashboard query. Close #301