assertRoleHasPermissions does not consider permissions assigned to authenticated role

Created on 15 March 2023, about 2 years ago
Updated 16 March 2023, about 2 years ago

Problem/Motivation

$this->assertRoleHasPermissions('some_role', ['some permissions']) fails if the permission is granted to authenticated users.

Proposed resolution

Check the given role, and authenticated role when checking if a role has a permission.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇷Argentina dagmar Argentina

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024