Comments (6)
In admin it has these permission checks:
access:
admin.flex-directory: true
admin.super: true
from grav-plugin-flex-directory.
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.
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.
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
from grav-plugin-flex-directory.
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.
Found a fix to access the entry manager logged as a specific group user !
- 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.
- 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)
- improve workflow HOT 2
- File uploads are not saving HOT 8
- File uploads incompatible with avoid_overwriting: true HOT 2
- Updating of a plugin was erasing my `entries.json` and reset blueprint HOT 2
- Can't get editor to work as form field type HOT 6
- Flex directory - File Field vs json file HOT 1
- some gantry5 links for editing settings cause Server Error HOT 1
- Conflict with Email plugin
- Custom form with textarea editor field HOT 4
- Retrive file link after file upload HOT 4
- How to setup flex-directory for multiple collections of entries HOT 12
- Two instances of grav-plugin-flex-directory
- can save a field named "task"
- how to get data from nested subfields in json managed by the Grav list formfield
- Editor doesn't work properly
- Adding action not work with semicolon separator
- Delete entry issues HOT 1
- flex-directory-cols.html.twig or site.html.twig HOT 1
- Error using `file` type of field HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-plugin-flex-directory.