Modify admin layout to only manage tenants and admins
We only want to render the account link and login items in the header. And we want only render the Multitenancy and Administrators sections in the admin sidebar. We include the administrators management so it's possible to give permissions to other users to manage tenants. In order to restrict access to other sections by typing the URL or following a link, we're only enabling the rest of the routes when we aren't in the multitenancy management mode.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
class Layout::FooterComponent < ApplicationComponent
|
||||
use_helpers :content_block
|
||||
|
||||
def render?
|
||||
!Rails.application.multitenancy_management_mode?
|
||||
end
|
||||
|
||||
def footer_legal_content_block
|
||||
content_block("footer_legal")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user