@franzzemen/brokenstock-shell 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,14 +107,9 @@ class AuthenticationService {
107
107
  get auth() {
108
108
  return this.#auth;
109
109
  }
110
- /** Check if the current user has a specific role. */
111
- hasRole(roleName) {
112
- return this.authenticated() && this.userSession()?.roles.includes(roleName) === true;
113
- }
114
- /** Check if the current user has any of the specified roles. */
115
- hasAnyRole(roleNames) {
116
- return this.authenticated() && roleNames.some(r => this.userSession()?.roles.includes(r) === true);
117
- }
110
+ // Legacy hasRole/hasAnyRole removed (legacy-authz-teardown): sessions carry no
111
+ // roles, and every gate migrated to hasFeature (commerce) with the BE enforcing
112
+ // the security axis.
118
113
  /**
119
114
  * Is this BOOLEAN feature granted and on? e.g. `hasFeature('real-time')`.
120
115
  *