Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to check if someone is an Approver. I am doing it in my Swedish Site:

SPGroup approvers = web.Groups["Godkännare"]
//check if the current person is in this group - code omitted

What if I create the site collection in English, it won't work.

We have beautiful associated groups for members, owners and visitors.

But what is the best way to do with Approvers?

What do you think?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I dont think so!

The groups are created per site collection and many of them are even named after the name of the site collection.

The SPGroupCollection's item collection gives you two overloads, string and ID (and i dont see any methods that would work) so I guess you are stuck with either looking at the permission mask (role wont do as this is translated also).

share|improve this answer
    
Thanks for your response, Anders! Maybe I should turn the procedure, and check if a user has SPBasePermissions.ApproveItems instead of checking if a user is in Approvers group (I got this idea when I read your advice to look at the permission mask). But this permission is possessed even by Owners (FullMask) and Designers (Design) as well. I must check if this satisfyes my business requirements. –  Anatoly Mironov Oct 20 '11 at 10:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.