show grants permission check for self incorrect
- Dominant language
- Go
- Stars
- 24.4k
- Forks
- 873
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 108
Description
I have a non-super user. They can see their grants IFF they don't specify a user, but if they specify their own id, the permission check fails.
```
db4> show grants;
+--------------------------------------------------------------------+
| Grants for bob@localhost |
+--------------------------------------------------------------------+
| GRANT USAGE ON *.* TO `bob`@`localhost` |
| GRANT SELECT, EXECUTE ON `db4`.* TO `bob`@`localhost` |
| GRANT EXECUTE ON PROCEDURE `db4`.`dolt_fetch` TO `bob`@`localhost` |
+--------------------------------------------------------------------+
3 rows in set (0.00 sec)
db4> show grants for bob@localhost;
command denied to user 'bob'@'localhost'
```
This works as expected in MySQL.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.