Thread:Extension talk:UserRightsMagic/Any alternatives to this?

I see this isn't being maintained, and it doesn't work for me - it gives definition errors for line 38..

Is there a good alternative for using group rights to identify users?