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. arrayref of bit numbers to turn on
cap_del. arrayref of bit numbers to turn off
res. hashref returned from 'modify_caps' hook
Source:
cgi-bin/LJ/User.pm
Returns:
updated u object, retrieved from $dbh, then 'caps' key modified otherwise, returns 0 unless all hooks run properly.