Returns true if the current user has the right or combination of rights specified by "permissionmask" for the current Web ...

Returns true if the current user has the right or combination of rights specified by "permissionmask" for the current Web site. The value of each right is specified by the SPRights enumeration. To create a permission mask that tests a combination of rights, sum the values of each right.