All created roles inherit the authenticated user role. Therefore, this role is always present (except for anonymous users) and should not override settings for created roles if they have settings. If they don't have settings, use the settings defined for the authenticated user role.

Also avoid doing this calculation when the user has just one role or when the user does have the authenticated user role but this role does not have permissions to attach files (as it would be removed anyway).

Comments

Tor Arne Thune’s picture

Status: Active » Fixed

Committed and pushed: 3ba8f8f.

Tor Arne Thune’s picture

Project: » Contact Attach
Version: » 7.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.