store permissions if permisions arr present and not empty