LUSHDigital / core-lush

Used for LUSH specific infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check if consumer is super user

medsrk opened this issue · comments

I currently check consumer.ID == 0 on creating records in my service to restrict the creation of comments if we don't have a user for whatever reason and also to restrict super user from commenting which isn't a bad idea. This led to the realisation that there isn't really a way to check for super user which could be useful!