8000 permission-sref with dynamic access · Issue #431 · RafaelVidaurre/angular-permission · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
permission-sref with dynamic access #431
Open
@hdi-amiri

Description

@hdi-amiri

Hi
If I have dynamic access like following

            data: {
                permission: {
                    only: function (transitionProperties) {
                        if (transitionProperties.toParams.type === "A") {
                            return [PERMISSIONS.A];
                        } else if (transitionProperties.toParams.type === "B") {
                            return [PERMISSIONS.B];
                        }
                    }
                }
            }

I cannot use permission-sref in my view, any workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0