Fixed bug with access rights