SIAM::User - User object class
my $user = $siam->get_user($uid);
$user->has_privilege('ViewContract', $contract)
Expects a privilege string and an object. Returns true if the object matches the privilege
$user->get_objects_by_privilege('ViewContract', 'SIAM::Contract', $siam)
Expects 3 arguments: privilege string; object class; and a container object. Returns arrayref with all matching objects.
To install SIAM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SIAM
CPAN shell
perl -MCPAN -e shell install SIAM
For more information on module installation, please visit the detailed CPAN module installation guide.