LJ::get_cap

LJ::get_cap — Given a user object, capability class key or capability class bit mask and a capability/limit name, returns the maximum value allowed for given user or class, considering all the limits in each class the user is a part of.

Use

LJ::get_cap(u_cap, capname);

Arguments

Source:

cgi-bin/ljcapabilities.pl