i want more information about this function parameter, for example what should i enter to make it check for super mod permission
user->getPermission
-
-
- Offizieller Beitrag
If you want to check wether the user is a supermoderator you could use
The return value may be used for boolean checks (since 1 is regarded as true). Some Permissions can return arrays or even strings, it heavily depends on the stored data. In general most values are boolean. -
thank you very much, it is what i needed
but how can i learn the different parameters, there must be a rule -
- Offizieller Beitrag
The technical documentation does not mention this topic so you should check out the api documentation available at http://www.selbstzweck.net/wcfapidoc/ . If you select "com-woltlab-wcf-data-user" you could find the method "getPermission" there.
In fact it's up to you wether you use that api docs (frames are lame!) or read yourself trough the sourcecode and figure out what the classes and methods do on your own.
-
i can't find it and i don't have the time to read the code, woltlab should release such documentation to improve its plugin database
thank you for the link -
- Offizieller Beitrag
You could try reading trough the official Technical Documentation as it explains a huge amount of features. If you're still unable to solve your problems you're always welcome to ask your questions
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!