Giter Club home page Giter Club logo

Comments (6)

paulfeakins avatar paulfeakins commented on May 29, 2024

I've also added this to config.php:

$config['_pico_users.enabled'] = true;

Adding output to public function config_loaded works so the plugin seems to be running, it just doesn't prevent access to any pages.

from pico-users.

nliautaud avatar nliautaud commented on May 29, 2024

Hello, I made an upgrade to Pico 1.0 in the following branch :
https://github.com/nliautaud/pico-users/tree/v0.2
Could you test it before I release it ?

Note that the plugin will be enabled by default and that the setting variable is $config. See the updated readme for up to date infos.

from pico-users.

paulfeakins avatar paulfeakins commented on May 29, 2024

Nice, that seems to work.

It throws a 404 if you browse directly and it hides restricted pages from the menu for non-logged users, which seems like correct behaviour.

from pico-users.

nliautaud avatar nliautaud commented on May 29, 2024

Great, thanks !

Two precisions on features that I don't know if they are explicit enough :

  • By default a standard 404 is thrown, that you can customize with the 404.md page. If you want to indicates to visitors that the pages exists but are restricted, you can create a 403.md page.
  • You can restrict full directories by using a trailing slash in a rights rule.

from pico-users.

paulfeakins avatar paulfeakins commented on May 29, 2024

Yes, I read the docs and I understood both of these points easily!

from pico-users.

nliautaud avatar nliautaud commented on May 29, 2024

Perfect, thanks for your return. I'll roll it shortly then.

from pico-users.

Related Issues (14)

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.