Pretty straight forward. I made this little insert because I got tons of requests for "access based on..." or "give feature when..." based on these three things. Because of this, I got fed up and decided it was time to write just a quick little snippet I could use so that it'd make life easy.
That way if there's a bug fix you don't need to worry about updating.
Tested In... Firefox 220.127.116.11 Opera 9.24 Internet Explorer 7 Safari 3.0.4b (for windows)