1234567891011121314151617181920212223 |
- # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
- class User::OverviewSortingPolicy < ApplicationPolicy
- def show?
- same_user?
- end
- def create?
- same_user?
- end
- def update?
- same_user?
- end
- def destroy?
- same_user?
- end
- def same_user?
- record.user == user
- end
- end
|