SharePoint Newbie
SharePoint Newbie

Reputation: 6082

Is creating a custom PrincipalPermission attribute a good idea?

I need to check for both Roles and a concept called Privilieges, which is distinct from roles in a WCF service.

As PrincipalPermission is sealed, I was thinking about creating a custom attribute for the same.

Is this a good idea?

Upvotes: 1

Views: 2275

Answers (1)

Phil Degenhardt
Phil Degenhardt

Reputation: 7264

The Role concept for permissions is fairly simplistic and does not allow sufficient granularity for many applications. If you create your own IPermission implementation it works very nicely. This answer provides a little more detail.

Upvotes: 1

Related Questions