SHOW GRANTS based privilege checking

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>