문제

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?

도움이 되었습니까?

해결책

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top