Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 02:47:02 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: BUG: Problems changing template for a single page  (Read 643 times)
Monky
Development Team
*****
Offline Offline

Posts: 47



WWW
« on: February 15, 2010, 05:07:50 PM »

Hello everyone,
I am trying to give a single page a different template than all the rest of the website. I have encountered the following problem:
When I go to the "change settings" of that page and open the drop-down menu "Template" I only see three entries:
Code:
Default settings
-------------------
MyCurrentTemplate
I checked out the WB code behind this listing and it looks like it is a permission problem. The weird thing about it: I am the site admin (in the group administrators).
I tried several things and found this:
When I add my (administrator) user to another group and give that other group the right to use a different template, THEN the other template is shown in the listing.

To me this looks like a BUG: Administrator should have access to all installed templates?!
Since one cannot change the permissions for the group "administrators" its impossible to add this  cool

Maybe someone can verify this before I create a ticket.

Cheers,
Sebastian
« Last Edit: February 15, 2010, 09:57:41 PM by Monky » Logged
chio
WebsiteBaker Org e.V.

Offline Offline

Posts: 2264


« Reply #1 on: February 15, 2010, 05:10:14 PM »

There is a known issue:
If a template has the same name like a module (!) you cannot choose it.
Logged

*weg*
oeh

Offline Offline

Posts: 190



« Reply #2 on: February 15, 2010, 06:11:13 PM »

Have a read HERE
and HERE
and Here
Logged

Good bye ;-{(
oeh ;-}>
Monky
Development Team
*****
Offline Offline

Posts: 47



WWW
« Reply #3 on: February 15, 2010, 09:56:54 PM »

I know there gets a lot RTFM bullsh!t posted in this forum but please guys - did you even read my post?  rolleyes

I have found a way to reproduce the situation and the way I see it it's a BUG.

How to reproduce it:
  • Get a fresh installation of WB (I used the portable WebsiteBaker locally on my comp - very convenient thanks!) Alternatively just test this in your WB installation.
  • Log onto the back-end as admin
  • Check the modify page of the (any) WYSIWIG page. The dropdown "Templates" shows all the installed modules.
  • Now go to the user management and create a new group "TheGroup" with access only to one template (uncheck the other boxes).
  • Create a new user and put that user in the Administrator group AND TheGroup (using shift selection).
  • log off as admin, log on as that newly created user
  • Go to the modify page of the WYSIWIG page visited above. Check the "Templated" dropdown. You will only see the one template that is allowed for TheGroup - but this user is still an admin!

The gist of this:
Putting a user in multiple groups should never narrow his rights, only broaden. There is a bug in the function that checks user rights.

Regards,
Sebastian
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6819


WWW
« Reply #4 on: February 15, 2010, 11:37:31 PM »

Hi Sebastian, you are right about rights, they should propagate up. Would you please post a ticket to the project site? Thanks.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Monky
Development Team
*****
Offline Offline

Posts: 47



WWW
« Reply #5 on: February 16, 2010, 01:25:26 AM »

done: http://project.websitebaker2.org/ticket/940
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!