add cancan for authorization

This commit is contained in:
Alex Turchyn committed 2023-09-17 00:45:57 +03:00
1 parent f89c50d096
commit 2f1843151d
58 files changed
+341 -184

No files matched your search

+4
View File
@@ -1,6 +1,10 @@
# frozen_string_literal: true
class ProfileController < ApplicationController
before_action do
authorize!(:manage, current_user)
end
def index; end
def update_contact