Commit 6b71ca0c authored by Filipa Lacerda's avatar Filipa Lacerda

Adds permissions verification to external url button

parent 40e25ea8
%a.btn.external-url{ "v-if" => "!isFolder && model.external_url",
":target" => "_blank",
":href" => "model.external_url"}
= icon("external-link")
\ No newline at end of file
-if can?(current_user, :read_environment, @project)
%a.btn.external-url{ "v-if" => "!isFolder && model.external_url",
":target" => "_blank",
":href" => "model.external_url"}
= icon("external-link")
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment