»

LJ::modify_caps

LJ::modify_caps — Given a list of caps to add and caps to remove, updates a user's caps

Use

LJ::modify_caps(uuid, cap_add, cap_del, res);

Arguments

  • uuid. 

  • cap_add. 

  • cap_del. 

  • res. 

Source:

cgi-bin/ljlib.pl

Returns:

updated u object, retrieved from $dbh, then 'caps' key modified otherwise, returns 0 unless all hooks run properly