List Info

Thread: ccTiddly privilege system question




ccTiddly privilege system question
country flaguser name
United States
2007-10-18 09:42:45
I know ccTiddly is sort of on hold by the author, because
they are
busy with other things.  So I was wondering if there is
someone here
that is familiar with the privilege system that could help
me out.

Basically I would like to be able to hide certain tiddlers
from most
users.  I have created a tag called admin_only and I have
set the the
privileges as follows:
$tiddlyCfg['privilege_misc']['group_default_privilege']['adm
in'] =
"AAAA";
$tiddlyCfg['privilege_misc']['group_default_privilege']['gro
up1'] =
"AUUU";
$tiddlyCfg['privilege']['anonymous']['admin_only'] =
"DDDD";
$tiddlyCfg['privilege']['group1']['admin_only'] =
"DDDD";
$tiddlyCfg['privilege']['admin']['admin_only'] =
"AAAA";

I am using group1 instead of user because it seems like if I
set user
privileges they apply to the admin as well because all
username
password pairs are added to the user group automatically.

I can get it to work so that group1 can only edit tiddlers
with a
specific tag (user_note), so they can only view other notes
and not
edit them.  However there are some notes that I do not want
them to
view.  Here is how I got the user_note option to work (with
the same
default privileges as above):
$tiddlyCfg['privilege']['anonymous']['user_note'] =
"ADDD";
$tiddlyCfg['privilege']['group1']['user_note'] =
"AAAA";
$tiddlyCfg['privilege']['admin']['user_note'] =
"AAAA";

Thanks,
David


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: ccTiddly privilege system question
country flaguser name
United States
2007-10-19 09:12:54
Hi David,


>From a quick look I suspect you can obtain the behavior
you require by
changing the following line:

$tiddlyCfg['privilege']['group1']['user_note'] =
"DDDD";
$tiddlyCfg['privilege']['admin']['user_note'] =
"AAAA";

This should mean that only admins can view the tiddler.

Its worth having a read over the comments on the config page
which
explain this. basically the four letters represent READ,
INSERT, EDIT
and DELETE for the tagged tiddlers in the same order.   You
can then
set each of the values with A (allow) D (deny) U
(unchanged)


Let me know if this does not do the job.

Regards

Simon McManus



On Oct 18, 3:42 pm, "david.j.winfi...gmail.com"
<david.j.winfi...gmail.com> wrote:
> I know ccTiddly is sort of on hold by the author,
because they are
> busy with other things.  So I was wondering if there is
someone here
> that is familiar with the privilege system that could
help me out.
>
> Basically I would like to be able to hide certain
tiddlers from most
> users.  I have created a tag called admin_only and I
have set the the
> privileges as follows:
>
$tiddlyCfg['privilege_misc']['group_default_privilege']['adm
in'] =
> "AAAA";
>
$tiddlyCfg['privilege_misc']['group_default_privilege']['gro
up1'] =
> "AUUU";
> $tiddlyCfg['privilege']['anonymous']['admin_only'] =
"DDDD";
> $tiddlyCfg['privilege']['group1']['admin_only'] =
"DDDD";
> $tiddlyCfg['privilege']['admin']['admin_only'] =
"AAAA";
>
> I am using group1 instead of user because it seems like
if I set user
> privileges they apply to the admin as well because all
username
> password pairs are added to the user group
automatically.
>
> I can get it to work so that group1 can only edit
tiddlers with a
> specific tag (user_note), so they can only view other
notes and not
> edit them.  However there are some notes that I do not
want them to
> view.  Here is how I got the user_note option to work
(with the same
> default privileges as above):
> $tiddlyCfg['privilege']['anonymous']['user_note'] =
"ADDD";
> $tiddlyCfg['privilege']['group1']['user_note'] =
"AAAA";
> $tiddlyCfg['privilege']['admin']['user_note'] =
"AAAA";
>
> Thanks,
> David


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )