Ejemplo n.º 1
0
 public static function hasRole($userid, $role_id)
 {
     $role_model = new RoleModel();
     $data = array();
     $data[PermissionRoleTable::userid] = $userid;
     $data[PermissionRoleTable::staff_role_id] = $role_id;
     $feedback = $role_model->hasRole($data);
     return $feedback;
 }