Revoke(Subject: ISecuritySubject);
Subject is a security subject.
The Revoke method revokes the privilege from the security subject that is passed by the Subject parameter.
Executing the example requires the user with the TESTUSER name that was created in the security manager.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MP: IMetabasePolicy;
Priv: IPrivilege;
Subject: ISecuritySubject;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
MP := MS.Policy;
Priv := MP.Privilege("Reading");
Subject := MS.ResolveName("TESTUSER");
Priv.Revoke(Subject);
MS.Apply;
End Sub Main;
After executing this example the privilege for reading and opening the repository objects is withdrawn from the TESTUSER user.
See also: