Global action handler with acl on portal user detail view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    Global action handler with acl on portal user detail view

    Espo version: 8.2.2, 8.1.5
    Espo log: clear
    Browser console: attachment

    Steps:
    1. Define global action handler clientDefs/Global.json
    Code:
        "menu":{
            "detail":{
                "buttons": [
                    "__APPEND__",
                    {
                        "name": "bookmarking",
                        "action": "bookmarking",
                        "label": "\uD83D\uDD16",
                        "hidden": false,
                        "acl": "read",
                        "data": {
                            "handler": "favorite"
                        }
                    }
    ]}}
    ​
    2. Go to portal user detail view - error

    If remove "acl" key - all ok.

    In the other view also all ok with "acl" key.

    It’s not critical, because if the user gets to and reads the card, then he has reading rights, but if access like editing rights is needed, it’s worse.
    Attached Files
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    I'll fix. Not sure how yet.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...