mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 02:54:10 +00:00
Providers sharing (#1273)
* third party provider scoping * Simplify logic and allow only admins to mange providers * Broadcast fixes * FIX tests and build * Fixes * Reviews * Scope merchants * DRY fixes
This commit is contained in:
@@ -87,10 +87,7 @@ class SplitsController < ApplicationController
|
||||
end
|
||||
|
||||
def require_split_write_permission!
|
||||
permission = @entry.account.permission_for(Current.user)
|
||||
unless permission.in?([ :owner, :full_control ])
|
||||
redirect_back_or_to transactions_path, alert: t("accounts.not_authorized")
|
||||
end
|
||||
require_account_permission!(@entry.account, redirect_path: transactions_path)
|
||||
end
|
||||
|
||||
def resolve_to_parent!
|
||||
|
||||
Reference in New Issue
Block a user