Ropke Posted November 16, 2016 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 11/15/16 Last Seen: March 1, 2018 Share Posted November 16, 2016 Hello, I am using the CMS FluxCP plugin and created new pages. They are all working correctly, but would like users to be able to access them without being logged in. It's possible? Thank you Link to comment Share on other sites More sharing options...
0 Ropke Posted November 20, 2016 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 11/15/16 Last Seen: March 1, 2018 Author Share Posted November 20, 2016 I commented //'content' => AccountLevel::ANYONE, And now anyone can view the pages. Late i'll debug the code to find the bug Solved. Link to comment Share on other sites More sharing options...
0 Akkarin Posted November 16, 2016 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: April 15 Share Posted November 16, 2016 By default, they already can. Have you changed any access settings in /conf/access.php, or have you added $this->loginRequired(); to the content.php page? Link to comment Share on other sites More sharing options...
0 Ropke Posted November 19, 2016 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 11/15/16 Last Seen: March 1, 2018 Author Share Posted November 19, 2016 (edited) On 16/11/2016 at 6:21 PM, Akkarin said: By default, they already can. Have you changed any access settings in /conf/access.php, or have you added $this->loginRequired(); to the content.php page? Nope, Currently only GM level 99 can see the pages... URL: http://127.0.0.1:8081/fokro/?module=pages&action=content&path=info My acess.php: 'pages' => array( 'index' => AccountLevel::ADMIN, 'add' => AccountLevel::ADMIN, 'delete' => AccountLevel::ADMIN, 'edit' => AccountLevel::ADMIN, 'content' => AccountLevel::ANYONE, content.php of modules page: <?php if (!defined('FLUX_ROOT')) exit; $pages = Flux::config('FluxTables.CMSPagesTable'); $path = trim($params->get('path')); $sql = "SELECT title, body, modified FROM {$server->loginDatabase}.$pages WHERE path = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array($path)); $pages = $sth->fetchAll(); if($pages) { foreach($pages as $prow) { $title = $prow->title; $body = $prow->body; $modified = $prow->modified; } } else { $this->redirect($this->url('main','index')); } ?> Edited November 19, 2016 by Ropke Link to comment Share on other sites More sharing options...
Question
Ropke
Hello,
I am using the CMS FluxCP plugin and created new pages.
They are all working correctly, but would like users to be able to access them without being logged in.
It's possible?
Thank you
Link to comment
Share on other sites
3 answers to this question
Recommended Posts