Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Specific permissions registry #99

Closed
knstvk opened this issue Aug 9, 2021 · 2 comments
Closed

Specific permissions registry #99

knstvk opened this issue Aug 9, 2021 · 2 comments
Assignees
Milestone

Comments

@knstvk
Copy link
Contributor

knstvk commented Aug 9, 2021

To use in REST and UI.
Now REST doesn't return custom specific permissions at all.

@knstvk knstvk added this to the 1.1.0 milestone Aug 9, 2021
@knstvk knstvk added this to Release 1.1 (October 2021) in Jmix Roadmap - OUTDATED Aug 10, 2021
@gorbunkov
Copy link
Contributor

  1. SpecificPolicyInfoRegistry has been created. The registry returns a list of specific policies available in the application. In order to be "registered" the specific policy must have a SpecificOperationAccessContenxt, e.g.
public class UiLoginToUiContext extends SpecificOperationAccessContext {

    public static final String NAME = "ui.loginToUi";

    public UiLoginToUiContext() {
        super(NAME);
    }
}
  1. The Specific policy editor in the Resource role editor now allows selecting a specific policy from the dropdown list. The combo-box supports user input, the user may grant a specific permission even it is not in the list.

  2. The /rest/permissions REST API endpoint now returns information about granted specific policies

gorbunkov added a commit that referenced this issue Sep 22, 2021
gorbunkov added a commit to jmix-projects/jmix-rest that referenced this issue Sep 22, 2021
gorbunkov added a commit to jmix-framework/jmix that referenced this issue Sep 22, 2021
@lovtsovaik lovtsovaik assigned owlet1997 and unassigned lovtsovaik Oct 8, 2021
@owlet1997
Copy link

owlet1997 commented Oct 11, 2021

Check-list:

  • combobox of specific permissions
  • add new specific permission in Studio -> check in runtime
  • write new specific permission in the combobox
  • check REST url

@knstvk knstvk removed this from October 2021 feature release 1.1 in Jmix Roadmap - OUTDATED Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants