Initial commit

This commit is contained in:
Chris Smith
2025-02-19 14:51:16 +01:00
commit d82a6cad96
198 changed files with 13819 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace common\rbac;
class SalesAgentRule extends \yii\rbac\Rule
{
public $name = 'assignedToSalesAgent';
/**
* @inheritDoc
*/
public function execute($user, $item, $params)
{
return isset($params['post']) && $params['post']->sales_agent_id == $user;
}
}