Something similar to RM_ACLCheckCommandPermissions discussed in #10025
Comment From: yoav-steinberg
@oranagra @YaacovHazan What do you think would be a good response to the API? The way I see it there are 3 possible responses:
1. You have permission.
2. You don't have permission.
3. Invalid command.
So should I return an integer? Should I define constants in lua (redis.PERMISSION_OK, redis.PERMISSION_DENIED, redis.PERMISSION_ERR)? Should I return an string: "ok", "denied", "unknown-command"? Should I return a boolean and raise an error in case of an invalid command?
Comment From: oranagra
I think returning a boolean and rising an error in case the request is invalid sounds reasonable. i think @MeirShpilraien and @itamarhaber may be in the best place to answer that.
Comment From: MeirShpilraien
@oranagra I agree, invalid command is an error and should raise an error. The other 2 are the possible responses to a valid input.