Skip to content

Commit

Permalink
feat(public account share): fixup! fixup! fixup! fixup! fixup! fixup!…
Browse files Browse the repository at this point in the history
… fixup! add public account share
  • Loading branch information
VladislavSokov committed Sep 6, 2023
1 parent d77189f commit 69a12ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create
end

helper_method def public_share?(account)
return false if current_user.account.id == account.parent.id ||
return false if current_user.account_id == account.parent_id ||
private_shared_accounts.include?(account.id)

public_shared_accounts.include?(account.id)
Expand Down
1 change: 1 addition & 0 deletions app/controllers/public_account_shares_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class PublicAccountSharesController < ApplicationController
before_action :authenticate_user!

def new; end

def create
Expand Down

0 comments on commit 69a12ca

Please sign in to comment.