Giter Club home page Giter Club logo

Comments (7)

Guite avatar Guite commented on July 24, 2024

See https://github.com/rallek/EventPhotosModule/blob/master/Helper/Base/AbstractCategoryHelper.php#L352

There are two different modes:

  1. return $this->categoryPermissionApi->hasCategoryAccess($entity->getCategories()->toArray(), ACCESS_OVERVIEW);

Allows access if the user has access to at least one selected category.

  1. return $this->categoryPermissionApi->hasCategoryAccess($entity->getCategories()->toArray(), ACCESS_OVERVIEW, true);

Only allows access if the user has access to all selected categories.

from eventphotosmodule.

Guite avatar Guite commented on July 24, 2024

Maybe I can improve customisability for that a bit tomorrow...

from eventphotosmodule.

Guite avatar Guite commented on July 24, 2024

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.

rallek avatar rallek commented on July 24, 2024

@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.

rallek avatar rallek commented on July 24, 2024

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.

Guite avatar Guite commented on July 24, 2024

You added this to CategoryHelper, but the AbstractCategoryHelper is not the newest version. So it never calls the new method.

from eventphotosmodule.

rallek avatar rallek commented on July 24, 2024

ups, you are right. Somehow the copying was uncomplete.

from eventphotosmodule.

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.