Checks that the currently authenticated user has all the rights that are specified in required. If not, perm_invalid() is called.
If one or more of the required rights or user rights are invalid (not to be found in the permissions hash), perm_invalid() is called as well.
Similar to check() in usage, only that it doesn't halt the session if the user doesn't have the appropriate rights: This function returns true, if the user has the required rights, false otherwise.
This function returns a SELECT-tag with the given name. Within this tag, all available permission values from $perm->permissions are contained as OPTION tags.
If you supply a value for current, the permission value that matches current is SELECTED. If you supply a value for class, the tags are marked with that CSS stylesheet class.