hi all,

 I am creating a site on intranet using drupal for research students.My problem is related to assigning permissions.Part of site i want to be accessible to research guide.
I don't want to give permissions to anonymouse user to navigate the site.If i remove all permission to annonymous user, on home page it is displaying access denied. Is there any solution to avoid access denied

Comments

cog.rusty’s picture

When it comes to view permissions, core Drupal is not very subtle. A user role can either have "access content" permission or not -- all or nothing. (It is a bit more granular with "create" permissions which are per node type as well.)

So, you need to install an access control module to disallow some users to view or edit some content... By user role, by content category, by individual user...

One module worth considering is Organic Groups (OG). It allows private groups with subscribed members within the site, and you can make some content public. The front page is outside any group, so it is public anyway.

Another very versatile access control module I am familiar with is Taxonomy Access Control (TAC). There are several others. However, up to Drupal 4.7 you can use only one reliably.

Without an access control module... if anonymous user should only see a front page and nothing else, you might be able to use a static page outside Drupal, containing a link to Drupal's login page somewhere.

nazneen-1’s picture

hello,

Thanks for your reply.It will serve my purpose.But when I tried sql query in database it is giving following error
ERROR 1146 (42S02): Table 'drupal.SYSTEM' doesn't exist
help me

cog.rusty’s picture

'system'? Strange. That is a core Drupal table. It does not have anything to do with og_actions or any other module. Did your site work ok before installing this module?

What was your query?

nazneen-1’s picture

my site is working properly.I will go from starting

First i downloaded action module,workflow module and og module .From og module read me text i got this query UPDATE SYSTEM SET weight = 10 WHERE name = "workflow".I logged in as a supper user.selected database and runned the above query but it it showed me error drupal.system does not exist.I am using drupal 4.7.3 fedorra core 5.The site now also working properly but the sub links in action module are not active to give previlleges.

with regards
Nazneen

cog.rusty’s picture

Is it a MySQL database? Try with lowercase 'system' instead of 'SYSTEM'

http://dev.mysql.com/doc/refman/5.0/en/name-case-sensitivity.html

Browse your tables to see what exactly their names are. Also, if you have created your table names with a prefix (for example 'dru_system') don't forget to use it.

nazneen-1’s picture

In msql I used lower case for system den rows are effected.When I am adding a node to specified group this warning is displayed on web page.

* user warning: Table 'ikm.og' doesn't exist query: SELECT og.nid, n.title FROM og og INNER JOIN node n ON og.nid = n.nid WHERE n.status = 1 AND n.type IN ('og') ORDER BY n.nid DESC in /var/www/html/tmc/includes/database.mysql.inc on line 120.
* Group field is required.

cog.rusty’s picture

What is the name of your database? Have you specified it correctly in your settings.php file in the $db_url line?

In your previous query it seemed to be 'drupal' (drupal.system).
In this query it seems to be 'ikm' ('ikm.og'). Or is it a prefix?

nazneen-1’s picture

I have created four sites,drupal .system is my testing site.When I got your last reply I tried freshly in one of my site.In my previous reply I used ikm database.

cog.rusty’s picture

Normally og module for Drupal 4.7 contains an og.install file which creates the og table and other tables automatically when you enable the module.

- Does the og table exist in the ikm database?

- Does the og.install file exist in /modules/og? (if not, then it is not the 4.7 og module)

nazneen-1’s picture

Neither og table exist in databse nor og.install file exist in /modules/og.

In /modules/og only three files are there,license.txt,og_actions.module,readme text file

cog.rusty’s picture

Then this is not og module. This is og_actions module which does not work alone.

In the README.txt file you can read this:

The og_actions module is a collection of 5 actions for use with the actions module and workflow module. These actions facilitate the use of organic groups with the actions and workflow modules, allowing administrators to create rules to modify the organic group information for specific nodes.

Requirements:
Og.module
Actions.module

Suggested:
Workflow.module

You must install og module and actions module first, if you want the og_actions module to work.
Og module is the most important one, and will create the missing tables.

naveen@ncsi’s picture

yes I downloaded all three module ie Og_actions,actions module,Workflow.module.Is it right?

vm’s picture

and the og.module

you need the Oragnic Groups module og_actions is an addon to the og.module.

nazneen-1’s picture

hi,

Now I am trying og module.I want to ask how to activate the og,og_basic modules and Views.module?

vm’s picture

what do you mean activate ?

after you upload the modules to the module directory

goto administer -> modules and enable the modules you uploaded.

if you mean how to use them, read the readme.txt files that came with the modules. Also read the help entries located in your drupal navigation menu under "help" and check the settings for each module, in adminster -> settings

the views modules is too powerful to explain in one forum post please visit http://drupal.org/node/63230 for a nice excecise to get your feet wet with the views module.

cog.rusty’s picture

The most important of all is the 'og module'. Without og module you will not have organic groups. Did you download it?

If I had a similar project I would start only with og module and no other.
I would install the others only much later, if I needed them for something.

nazneen-1’s picture

yes now i downloaded.

nazneen-1’s picture

Neither og table exist nor og.install file exist in /modules/og

In /modules/og only three files are there,license.txt,og_actions.module,readme text file

nazneen-1’s picture

Thank you,CogRusty