Fixed default permissions function.