Skip to content

Instantly share code, notes, and snippets.

@johnbender
Created November 12, 2008 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnbender/24090 to your computer and use it in GitHub Desktop.
Save johnbender/24090 to your computer and use it in GitHub Desktop.
//calls
Method1(webToPass);
Method2(listToPass);
//definition
private void Method1 (SPWeb web)
{
web.permissions = "full";
}
Method2 Method2 (SPList list)
{
list.permissions = "full";
}
//SHOULD BE
//calls
Method1 ((SPPermissionedObject)webToPass);
Method1 ((SPPermissionedObject)listToPass);
//functions
Method1 (SPPermissionedObject permissionedObject)
{
permissionedObject.permissions = "full";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment