<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt">Then they won't see the page telling them to login... The Util package now includes a module to provide a welcome (login) page so you could do that.<br><div><span><br></span></div><div> </div><div><font color="#ff007f" face="bookman old style, new york, times, serif" size="4"><i><b>Nancy</b></i></font> <br></div><div><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span
style="font-weight:bold;">From:</span></b> Jamie Holly <hovercrafter@earthlink.net><br> <b><span style="font-weight: bold;">To:</span></b> support@drupal.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, February 24, 2013 10:49 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [support] Before I Uninstall Content Access...<br> </font> </div> <br>
<div id="yiv1630251443">
<div>
<div class="yiv1630251443moz-cite-prefix">Why don't you just disable the view
published content permission for anonymous users?<br>
<pre class="yiv1630251443moz-signature">Jamie Holly
http://www.intoxination.net
http://www.hollyit.net</pre>
On 2/24/2013 10:45 PM, Shai Gluskin wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>I've got a site that is totally private. Once
you are a member and can login, you can see
everything. There <i>are</i> different roles,
but they all relate to various administration
privileges which can be handled with standard
Drupal permissions/roles. <br>
<br>
Content Access adds the viewing control, which I
don't need on the private side, where everyone
can see everything.<br>
<br>
</div>
I had been using Content Access which seemed like
overkill since there was no content that I wanted
available on the public site other than a login
screen.<br>
<br>
</div>
I came up with the following rule in the Rules
module:<br>
<br>
</div>
Trigger: View content<br>
</div>
Condition: User is anonymous<br>
</div>
Action: page redirect (preserve destination) to /user.<br>
<br>
</div>
So simple. Am I missing something? Can I uninstall Content
Access?<br>
<br>
</div>
Shai Gluskin<br>
<br>
</div>
Here is the export of the rule:<br>
<br>
<span style="font-family:courier new, monospace;">{
"rules_anonymous_user_redirect" : {<br>
"LABEL" : "Anonymous User Redirect",<br>
"PLUGIN" : "reaction rule",<br>
"REQUIRES" : [ "rules" ],<br>
"ON" : [ "node_view" ],<br>
"IF" : [<br>
{ "user_has_role" : {<br>
"account" : [ "site:current-user" ],<br>
"roles" : { "value" : { "1" : "1" } }<br>
}<br>
}<br>
],<br>
"DO" : [ { "redirect" : { "url" : "user", "destination" :
1 } } ]<br>
}<br>
}</span><br>
<div>
<div>
<div><br>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="yiv1630251443mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</div>
</div><br>-- <br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br><br> </div> </div> </blockquote></div> </div></body></html>