If a user has “create client” permission, but doesn’t have “activate client” permission, he/she can still activate the client while creating a client using ACTIVE checkbox

Description

Steps to reproduce:

1. Create a use and give him permissions for “CREATE CLIENT” and “ACTIVATE CLIENT” under Portfolio.
2. Login from this new user.
3. Create a new client. >> This is where you would be able to “ACTIVE” the new client.

Pausible fix:

In file community-app/views/client/createclient.html, search for 'label.input.active' | translate. The div opening above this with class=”form-group”, add attribute ‘has-permission="ACTIVATE_CLIENT"’

I am not using git so have not shared the proper diff but have tested these changes and they work fine.

Environment

None

Assignee

Unassigned

Reporter

RishabbhD

Labels

None

URL

None

Story Points

None

Team

Community

Notify

Sangamesh Nadagoudar

productboard URL

None

Man Day Estimate

None

Time tracking

1h

Priority

Critical
Configure