rtsecuritymanager/rtsecuritymanagerserver/src/rtsecmgrscriptmanager.cpp
changeset 10 a7062f7f0b79
parent 0 99ef825efeca
--- a/rtsecuritymanager/rtsecuritymanagerserver/src/rtsecmgrscriptmanager.cpp	Fri Jul 03 15:51:30 2009 +0100
+++ b/rtsecuritymanager/rtsecuritymanagerserver/src/rtsecmgrscriptmanager.cpp	Thu Sep 10 12:58:32 2009 +0300
@@ -204,3 +204,18 @@
 		}	
 	}
 }
+
+void CScriptManager::UpdatePermGrantL(TExecutableID aExecID,RProviderArray aAllowedProviders,
+                                        RProviderArray aDeniedProviders)
+{   
+    for(TInt i(0);i!=iScripts.Count();++i)
+    {
+    if(iScripts[i]->ScriptID()==aExecID)
+        {
+            iScripts[i]->SetPermGranted(aAllowedProviders);
+            iScripts[i]->SetPermDenied(aDeniedProviders);
+            iSecMgrDB->WriteScriptInfoL(aExecID,*iScripts[i]);          
+            return;
+        }   
+    }
+}