show archived shared templates

This commit is contained in:
Pete Matsyburka
2026-06-24 19:08:15 +03:00
parent 2840359396
commit b2790776ef
8 changed files with 38 additions and 13 deletions
@@ -4,7 +4,7 @@ class TemplatesRestoreController < ApplicationController
load_and_authorize_resource :template
def create
authorize!(:update, @template)
authorize!(:destroy, @template)
@template.update!(archived_at: nil)