Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Access/edit checks #356

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hermann-p
Copy link
Contributor

@hermann-p hermann-p commented Jan 16, 2024

  • I gave the PR a meaningful name
  • I checked that the correct target branch is selected
  • I rebased the branch on the target branch and it can be merged
  • I ran the linter and it did pass
  • I checked for unused code / dead code / debug code
  • I checked that variables/functions have meaningful names
  • I checked that the behaviour is as the documentation/task describes and I tested it
  • I updated the docs / specifications if possible
  • I could explain all that code when someone wakes me up at 3am
  • I checked that the code considers failures and not just the happy path
  • There are no new dependencies OR I listed them and explained them below
  • PR introduces no breaking changes OR I listed them and described them below
  • I added/updated tests for new/modified unit-testable functions/helpers
  • I ran the tests and they did pass

Summary

  • AC#1013 - bearbeiten von key und displayKey Spalten in Settings-Tabellen verbieten
  • Bei "final" gesetzten Zeilen die "Link löschen"-Aktion deaktivieren
  • AC#1051 - Rowcreator nur anzeigen, wenn in der Zieltabelle auch Zeilen erstellt werden könnnen

@hermann-p hermann-p changed the title AC-1051: Disable "remove link" button in EV for locked rows Bugfix: Access/edit checks Jan 16, 2024
@hermann-p hermann-p force-pushed the bugfix/link-edit-option-visibility branch from 08bb56e to 7b87e65 Compare January 16, 2024 14:52
@hermann-p hermann-p mentioned this pull request Jan 17, 2024
14 tasks
Copy link
Collaborator

@McHunkyTrunk McHunkyTrunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code passt von meiner Seite.
@Zwergal Ich habe das Frontend zum Testen auf Winora Testcenter deployed und einen neuen User angelegt:

  • user: test-link-edit
  • pass: test0000
    Der User besitzt die Rollen dev und deny-view-variants (die Rolle existiert nur aufm Testserver), womit man den Rowcreator testen kann (man sollte keine neuen Varianten für Modelle anlegen können).
    Beispiel: Batavus Modelle
    https://pdc-test.winora.grud.de/de/tables/191

@Zwergal
Copy link
Member

Zwergal commented Jan 23, 2024

@McHunkyTrunk @hermann-p Ich weiß jetzt nicht wie die Rechte sind, aber ich sehe nun gar keinen Button mehr um neue Varianten im LinkOverlay anzulegen:
image

Auch hier bei Modelljahr nicht, obwohl ich das beim Modelljahr machen darf.
image

Es ist egal bei welchem LinkOverlay, der Button erscheint nie.

Bzgl. 1013 sieht es gut aus.

@Zwergal
Copy link
Member

Zwergal commented Jan 23, 2024

@hermann-p Der Part mit dem "Minus"-Button im Entity-View wenn man kein Recht auf die Link-Spalte hat besteht weiterhin:
image

Ist aus dem Ticket https://app.activecollab.com/116706/projects/2?modal=Task-46156-2 (1004). Ein Ticket 1051 gibt es in AC gar nicht. Ist falsch angegeben in der Beschreibung, oder?

Copy link
Member

@Zwergal Zwergal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Siehe Kommentare direkt am PR

@McHunkyTrunk
Copy link
Collaborator

@Zwergal @hermann-p Die Rolle deny-view-variants, die ich zum Testen angelegt habe, sieht wie folgt aus:

"deny-view-variants": [
    {
      "type": "deny",
      "action": [
        "viewTable",
        "viewColumn",
        "viewCellValue"
      ],
      "condition": {
         "table": {
             "name": ".*_variant"
         }
      }
    }
  ]

@Zwergal Du hast Recht. beim "Campudus" User sind jetzt auch keine Buttons im LinkOverlay zu sehen.

@McHunkyTrunk McHunkyTrunk force-pushed the master branch 2 times, most recently from fcae7a1 to 0004e74 Compare March 29, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants