Access user permissions within rule code?

Thanks for sharing that solution here @Saltuk!