test: adapt tests to reflect implementation details
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon 2026-01-27 23:40:12 +01:00
parent 5e0b6580ae
commit 9991291b2f
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
7 changed files with 98 additions and 71 deletions

View file

@ -22,8 +22,8 @@ defmodule MvWeb.GroupLive.Index do
def mount(_params, _session, socket) do
actor = current_actor(socket)
# Check if user can read groups
if can?(actor, :read, Mv.Membership.Group) do
# Check if user can access the groups page (page permission check)
if can_access_page?(actor, "/groups") do
groups = load_groups(actor)
{:ok,