more elaborate check that user has privileges
more elaborate check that user has privileges

druud62/gh-ost,druud62/gh-ost,groenewold-pythian/gh-ost,wfxiang08/gh-ost,wfxiang08/gh-ost,groenewold-pythian/gh-ost,shuhaowu/gh-ost,shuhaowu/gh-ost