Giter Site home page Giter Site logo

Comments (6)

mahagr avatar mahagr commented on May 27, 2024

In admin it has these permission checks:

access:
    admin.flex-directory: true
    admin.super: true

from grav-plugin-flex-directory.

achwell avatar achwell commented on May 27, 2024

But not possible to let only people with one specific group edit content in flex-directory?
If editor of flex-directory-content is not admin?

from grav-plugin-flex-directory.

mahagr avatar mahagr commented on May 27, 2024

Yes. Create a user group which has access to admin.flex-directory and prevent access on other parts of admin.

from grav-plugin-flex-directory.

achwell avatar achwell commented on May 27, 2024

Created group with admin.flex-directory: "true", admin.login: "true", everything else "false" , and user with this group only.
When logged in with user, only "Dashboard" and "Log out" in menu.

Tried with Grav 1.3.10 and 1.4.0-rc.1, same result

grouprights
logged in user

from grav-plugin-flex-directory.

jazzyjube avatar jazzyjube commented on May 27, 2024

Same problem here :/
Properly set flex-directory permission to the group but impossible to see on the sidebar when logged as the group user.
Perhaps, it's possible for the group user to access the url /admin/flex-directory/entries directly from the browser.

Have a good day

from grav-plugin-flex-directory.

jazzyjube avatar jazzyjube commented on May 27, 2024

Found a fix to access the entry manager logged as a specific group user !

  1. As you mentioned before, we need first to set the permission to the group :

Created group with admin.flex-directory: "true", admin.login: "true", everything else "false" , and user with this group only.

  1. Change line 92 in user/⁨plugins⁩/⁨flex-directory⁩/⁨flex-directory⁩.php for :

$this->grav['twig']->plugins_hooked_nav['PLUGIN_FLEX_DIRECTORY.TITLE'] = ['route' => $this->name .'/entries', 'icon' => 'fa-list', 'authorize' => ' admin.flex-directory'];

It was missing a parameter for the navigation template to check if we can access or not

from grav-plugin-flex-directory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.