problems with roles in Drupal - solved
I am having problems with Roles and Permissions. There is a node that can be edited when the user has one role, but not when a role with the same permissions is used.
I got it working on my development platter and learned a bit about roles and access permissions.
What has me stumped right now is that when I copy the system from my desktop to the live server. I copy the programs, database, and rebuild the node access permissions (see below). But so far, it's a no go.
This is the first time I've seen a difference between the XAMPP servers on my desktop and the live server at GoDaddy.
On the desktop, I found that the way I was changing roles confused the system so I needed to refresh them. But that wasn't enough for the live site.
NOCCC's use of roles and permissions
The current configuration of roles works in a hierarchical manner to allow for the site to be maintained with the collaboration of several people. That way the site is controlled by the club but is not reliant upon one person for each task. Any member of the board can jump in at any time.
Here's a quick overview;
- Anonymous and authenticated users can only read/access data that is considered incidental.
- Members can do a few more tasks and can see information that is a little more important.
- There are a few roles with special permissions to change some of that information.
- Board members can change most of the content and moderate the site as they see fit. There are a few pieces of content that are a security risk and its access is limited.
- Just a few board members are given the privileges needed to edit all content and they can act as moderators/editors of everything except the site's layout and configuration.
- Only the Administrator can change the layout and configuration of the site, and the role assignments.
- log on as administrator
- create some kind of content
- set the input filter to PHP
- put the following line in the body.
<?php
node_access_rebuild();
?> - previewed the content
- copied the custom node I was working on using GoDaddies control panel
- changed the permissions, role, and user table in the server to reflect what I have on the desktop
- exported both the structure and the data from my desktop with 'drop if exist' used to an SQL file
- imported above SQL file into the live database
- rebuilt the permissions as above
- Why did this happen even though I did a complete copy and database transfer? My guess is that I messed something up somewhere at this point and I'll have to look at the SQL file more closely.
- Is there any safe way of using a table in a page node? Tables were the only reason I used a more powerful input format. I have to look for a contributed filter or think about how I would do it myself. But tables can be mis-used for XSS purposes and should not be allowed except for administrative purposes.
- Should all SIG leaders have permissions to use tables? I'm a SIG leader and the administrator so I have special permissions. But I don't want other SIG leaders to have these permission so I shouldn't be. But tables are a valid concern since information is sometimes best shown in a tabular manner. If I need to use them then maybe I need to allow all SIG leaders to use them.
- Should board members be trusted with complete HTML? At first I didn't want to give board members the right to enter all HTML since it can be a security risk. But I decided to allow it since we should be trusting the board and if an unscrupulous person became a board member then we would have more problems. My only concern now is that board members might make a mistake.

Comments
You have more useful info
You have more useful info than the British had colonies pre-WWII.
Post new comment