Comments (7)
See https://github.com/rallek/EventPhotosModule/blob/master/Helper/Base/AbstractCategoryHelper.php#L352
There are two different modes:
return $this->categoryPermissionApi->hasCategoryAccess($entity->getCategories()->toArray(), ACCESS_OVERVIEW);
Allows access if the user has access to at least one selected category.
return $this->categoryPermissionApi->hasCategoryAccess($entity->getCategories()->toArray(), ACCESS_OVERVIEW, true);
Only allows access if the user has access to all selected categories.
from eventphotosmodule.
Maybe I can improve customisability for that a bit tomorrow...
from eventphotosmodule.
See Guite/MostGenerator@3084489
With this you can just do:
protected function requireAccessForAll($entity)
{
return true;
}
in https://github.com/rallek/EventPhotosModule/blob/master/Helper/CategoryHelper.php
from eventphotosmodule.
@Guite: Would be great to have this as an modul option for Configuration/Integration
.
Nevertheless thank you for this feature. I will add it at weekend.
from eventphotosmodule.
I implemented after new generating the module.
see: 54b0002
https://oldtimer-ig-osnabrueck.de/eventphotos/albumItem/6
This item should not be visible if not logged in and belonging to a dedicated group but it is.
from eventphotosmodule.
You added this to CategoryHelper
, but the AbstractCategoryHelper
is not the newest version. So it never calls the new method.
from eventphotosmodule.
ups, you are right. Somehow the copying was uncomplete.
from eventphotosmodule.
Related Issues (20)
- rotation issue HOT 1
- AlbumItem delete navigation
- hook not working? HOT 8
- Album view template QuickNav improvement HOT 1
- readme.mp should have better informations
- Filtering by Owner HOT 1
- Category based permission is broken HOT 1
- Image issue (no shrinking and no thumbnails)
- remove the `filepath` from the EXIF raw data list HOT 1
- more options
- wrong version number
- using ProfileModule HOT 3
- create a draft for ZK 2.0.x HOT 3
- custom.css to late HOT 2
- delete Button is missing
- upgrade implementation from 1.x to 2.x HOT 1
- fall back if profile is not used HOT 1
- remove the Link to image list in AlbumItem display
- Can't create an album HOT 3
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 eventphotosmodule.