-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/solver-it-sro/govbox-pro in…
…to GO-200/admin_others_target_UX
- Loading branch information
Showing
75 changed files
with
856 additions
and
638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ yarn-debug.log* | |
.yarn-integrity | ||
|
||
.env.local | ||
.env.test | ||
|
||
/app/assets/builds/* | ||
!/app/assets/builds/.keep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
class Layout::MessageThreadSidebarComponent < ViewComponent::Base | ||
def initialize(message:) | ||
@selected_message = message | ||
@thread_messages = @selected_message.thread.messages.order(delivered_at: :desc) | ||
@thread_messages = @selected_message.thread.messages_visible_to_user(Current.user).order(delivered_at: :asc) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ def index | |
|
||
def show | ||
authorize([:admin, @group]) | ||
@other_tags = other_tags | ||
end | ||
|
||
def new | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
class Admin::TagGroupsController < ApplicationController | ||
before_action :set_tag_group, only: %i[ destroy ] | ||
# TODO - rediscuss the whole concept of SITE_ADMIN vs TENANT admin responsibilities and functionality | ||
|
||
def create | ||
@tag_group = TagGroup.new(tag_group_params) | ||
authorize([:admin, @tag_group]) | ||
|
||
@tag_group.save! | ||
|
||
redirect_back fallback_location:"/", notice: "Tag permission was successfully assigned." | ||
end | ||
|
||
def destroy | ||
authorize([:admin, @tag_group]) | ||
@tag_group.destroy | ||
redirect_back fallback_location:"/", notice: "Tag permission was successfully destroyed." | ||
end | ||
|
||
private | ||
|
||
def set_tag_group | ||
@tag_group = policy_scope([:admin, TagGroup]).find(params[:id]) | ||
end | ||
|
||
# Only allow a list of trusted parameters through. | ||
def tag_group_params | ||
params.require(:tag_group).permit(:tag_id, :group_id) | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
app/controllers/drafts/imports_controller.rb → ...lers/message_drafts_imports_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.