Updated permissions with flag