mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:01:41 +00:00
Les usuaries solo pueden ver sus propias consultas.
This commit is contained in:
parent
af67c39dc4
commit
44450da520
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue