//Call this function where you want IsCurrentUserMemberOfGroup( "GropuName" , function (isCurrentUserInGroup) { if (!isCurrentUserInGroup) { } }); //Below is the Function to Check whether the user exists in the group or not function IsCurrentUserMemberOfGroup(strGroupName, functionComplete) { //Setup Vars currentContext = null ; currentWeb = null ; allGroups = null ; leaderGroup = null ; currentUser = null ; groupUsers = null ; //Get an instance of the Client Content. currentContext = new SP.ClientContext.get_current(); //Grab the client web object. currentWeb = currentContext.get_web(); //Get the current user object currentUser = currentContext.get_web().get_currentUser(); currentContext.load(currentUse...
You can copy the DLLs from GAC by following below steps. 1.Open Run and execute below command regsvr32 /u C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll - shfusion.dll It is an explorer extension DLL that gives a distinct look to the GAC folder. Unregistering this file will remove the assembly cache viewer and the GAC folder will be then visible as any normal folder in explorer. 2. Now Open “%windir%\assembly\GAC_MSIL”. 3. Then find out your dll and copy to required location. 4. Run "regsvr32 /i %windir%\Microsoft.NET\Framework\<.NET version directory> \shfusion.dll" to re-register the shfusion.dll file and regain the original distinct view of the GAC.
Comments
Post a Comment