Skip to content

Commit

Permalink
Add flag for activated encryption on user model
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashellmann committed Apr 3, 2024
1 parent 154c822 commit f0e1bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/documents_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def index
def create
@file = params[:document]
@file_text = ""
@encrypted = current_user.secret_key.present?
@encrypted = current_user.encryption_activated_flag and current_user.secret_key.present?

if @file.blank?
@file_name = nil
Expand Down

0 comments on commit f0e1bed

Please sign in to comment.