* Checks if the given name matches a reserved internal role name * (system login role, builtin role, or custom RBAC role). * Returns true if the name is reserved and should be rejected. */
| 734 | * Returns true if the name is reserved and should be rejected. |
| 735 | */ |
| 736 | bool |
| 737 | IsReservedInternalRoleName(const char *name) |
| 738 | { |
| 739 | return IS_SYSTEM_LOGIN_ROLE(name) || |
| 740 | IS_BUILTIN_ROLE(name) || |
| 741 | IS_CUSTOM_RBAC_ROLE(name); |
| 742 | } |
| 743 | |
| 744 | |
| 745 | /* |
no outgoing calls