Greetings!

I have a function similar to

my $account_id = shift;
my $query_params = shift;

my $rs = $schema->result("Table")->search($query_params);

I want to provide account-related access restrictions implicitly so I
need to modify the $query_params variable. There are no problems when
the $query_params is a hash reference, the code looks like

my $params = {-and => [$query_params, {restrictions} ]}
my $rs = $schema->result("Table")->search($query_params);

How can I do it in case of the array ref passed as original params?
Thank you!

-- 
SY, Dmitry Belyavsky

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to