PHCNetworks/multi-tenancy-warden

View on GitHub
app/controllers/mtwarden/application_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Mtwarden
    class ApplicationController < ::ApplicationController

    def authorize_owner
            unless owner?
                flash[:error] = "You are not allowed to do that."
                redirect_to root_path
            end
        end
    end

end