Jifty::RightsFrom
package Application::Model::Thing::Schema; use Jifty::DBI::Schema; use Application::Model::Person; column owner_id => refers_to Application::Model::Person; package Application::Model::Thing; use base qw( Application::Record ); use Jifty::RightsFrom column => 'owner';
Provides a delegate_current_user_can method that various task-related objects can use as a base to make their own access control decisions based on their task. "current_user_can" in Jifty::Record uses this method to make an access control decision if it exists.
delegate_current_user_can
Takes:
The subroutine in this package that you want to export.
The name of the package you want to export to.
The name your new curried sub should be exported into in the package export_to
export_to
The arguments you want to hand to your sub.
Seeing and editing task transactions (as well as other activities) are based on your rights on the task the transactions are on. Some finagling is necessary because, if this is a create call, this object does not have a task_id yet, so we must rely on the value in the ATTRIBUTES passed in.
task_id
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.