5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 18:26:21 +00:00

Les usuaries solo pueden ver sus propias consultas.

This commit is contained in:
f 2021-08-02 18:41:09 -03:00
parent af67c39dc4
commit 44450da520

View file

@ -55,6 +55,11 @@ module BlazerDecorator
private
# Solo mostrar las consultas de le usuarie
def set_queries(_)
@queries = (@current_usuarie || current_usuarie).blazer_queries
end
# blazer-2.4.2/app/views/blazer/queries/run.html.erb
def chart_type
case @result.chart_type