On 6/7/07, <b class="gmail_sendername">Sandy</b> &lt;<a href="mailto:sandy@onebit.ca">sandy@onebit.ca</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Tegan Dowling wrote:<br>&gt; I can&#39;t speak for Laszlo for sure -- but I know what he asked for<br>&gt; resembles what I want:&nbsp;&nbsp;does this page have a read-attribute set?<br>&gt;<br>&gt; Because if this page does not have a read attribute set (not on the
<br>&gt; page&#39;s ?action=attr nor inherited from the group&#39;s<br>&gt; GroupAttributes?action=attr), then I want to know that at a glance, when<br>&gt; I&#39;m on the page as an admin.<br>&gt;<br>&gt; Certainly, most of what I want to protect, I&#39;ll protect by placing in a
<br>&gt; read-protected area.&nbsp;&nbsp;But sometimes I&#39;ll want to read-protect a page<br>&gt; within an unprotected group. OR sometimes I may unprotect<br>&gt; (read-attribute = nopass) a page within a read-protected group, and it
<br>&gt; would be good for me, as an admin, to see something right on the page<br>&gt; that could alert me to the fact that I&#39;m looking at / working on such a<br>&gt; page.<br>&gt;<br>&gt; I&#39;ve lived without this, and I can continue to do so, but Laszlo has
<br>&gt; asked if there&#39;s any kind of condition that can be inquired about from<br>&gt; within a page to determine it&#39;s read-protection-status.&nbsp;&nbsp;I&#39;d use it if I<br>&gt; knew about it.&nbsp;&nbsp;Is there such a thing?<br>
&gt;<br>&gt;<br><br>Is there a variable that can be displayed in the sidebar, and surrounded<br>by (:if:) to only show if you&#39;ve admin privileges?</blockquote><div><br>Do you mean (:if&nbsp; auth admin:) ?&nbsp; I wasn&#39;t worrying about how to limit display of the information about whether a page has a read-protection attribute, figuring I&#39;d deal with that once I know whether there even is a way to get the attribute-existence information on the page.
<br><br>But ... <br><br>(:if expr auth admin &amp;&amp; pageattribute read :)<br>page has read-protection<br>(:if expr auth admin &amp;&amp; ! pageattribute read:)<br>page does not have read-protection<br>(:ifend:)<br><br>
Is that what you were getting at?<br></div><br></div>