add_permission


Description:

public bool add_permission (string ptype, string pitem, string? detail)

Adds a permission to the connection's permission list.

At this time, only the "user" permission type is supported, and pitem must be a username. See permissions: for more details.

Parameters:

this

the SettingConnection

ptype

the permission type; at this time only "user" is supported

pitem

the permission item formatted as required for ptype

detail

unused at this time; must be null

Returns:

true if the permission was unique and was successfully added to the list, false if ptype or pitem was invalid. If the permission was already present in the list, it will not be added a second time but true will be returned. Note that before 1.28, in this case false would be returned.




2022 vala-language.org