Das Notes Forum

Domino 9 und frühere Versionen => Entwicklung => Thema gestartet von: feargus am 29.04.02 - 08:33:05

Titel: Database.QuerryAccess(name)
Beitrag von: feargus am 29.04.02 - 08:33:05
Wenn ich das richtig Verstehe ist es egal ob die Person über eine Gruppe oder direkt in der Datenbank steht.
Bei einer Abfrage mit db.querryaccess(name) sollte der enstprechende Wert ausgegeben werden. Leider kommt immer nur 0 raus.
bsp:
db.CurrentAccessLevel  ( = 6)
db.QueryAccess( session.CommonUserName) ( = 0)

Weis da jemand ne Lösung ???  ???



If the name$ you specify is not listed explicitly in the ACL, QueryAccess does the following:
If the name is a member of a group defined in the Public Address Book and that group name is listed in the access control list, QueryAccess returns the access level of the group name.
If the name is a member of several groups listed in the ACL, QueryAccess returns the highest access level granted to any of the groups.
If the name is not a member of any group, QueryAccess returns the default access level.

Titel: Re: Database.QuerryAccess(name)
Beitrag von: gpeters am 07.05.02 - 08:51:16
Hallo feargus,

queryaccess liest NUR das primäre Adreßbuch des Rechners, auf dem das SCRIPT läuft. Im Regelfall also names.nsf. Und das ist - wenn das Script auf dem Client läuft - das persönliche Adressbuch!

Gerald