Gossamer Forum
Home : Products : Others : Gossamer Community :

Admin fields only?

Quote Reply
Admin fields only?
Hi. It seems that there is no option to have fields set as 'admin editable only' ... is this the case?

In SSI.pm, I see;

Code:
foreach ( $user_tb->ordered_columns ) {
next unless /$opts->{col_prefix}/;
next if $skip->{$_};
push @$cols, $_;
}

Anyone got any ideas?

Because we are using GComm to manage our members area at UltraNerds, it seems that a few people have already tried to take advantage of being able to signup without having to buy the plugins. I personally think this is appalling, and I hope you all feel great about yourselves.

Anyway, back to the main thing...

In the above piece of code, I added;

Code:
if ($_ =~ /prof_Owned_Programs/ && $IN->param('do') ne 'admin_user_form') { next; } # MOD
if ($_ =~ /prof_Allowed_Support/ && $IN->param('do') ne 'admin_user_form') { next; } ; # MOD

However, this doesn't actually seem to modify the users any more? Unsure

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Admin fields only? In reply to
Hi,

We'll add this into the next release of Community.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Admin fields only? In reply to
Thanks Cool

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Alex] Admin fields only? In reply to
Alex,

I have been thinking (and there has been a lot of talk in this forum) about being able to do this in LSQL as well.

What would it take for there to be admin fields in LSQL in the <%form%> tag?
Only admins would be able to view, thus modify certain fields.

Thank you for your answer.
Smile
Quote Reply
Re: [Alex] Admin fields only? In reply to
I think a correct permission system would be better.
I mean not just an admin-user permission, but much more.
I have a few ideas, let me express some of them.

Components of permission system:

Access Rights:
  1. Read (R)
    • a) Read specific table (inherited from default rights)
    • b) Read specific field (inherited from table rights, if defined)
    • c) Read specific record (inherited from field rights, if defined)
    • d) Read specific template set (inherited from record rights, if defined)
    • e) Read specific template (inherited from template set rights, if defined)
  2. Modify specific record (M) (right inherited from field rights if defined)
  3. Add specific record (A)
  4. Delete specific record (D)
  5. Inherit from above (I)
  6. Admin permission (full permission)

Pre-created permissions (R=read M=modify A=add D=delete):
Admin permissions: full admin interface permission, permission to all tables, fields, records
Editor permissions: R specific tables, M specific tables, A specific tables, D specific tables permissions applied. Including: specific tables, fields, records. Excluding: specific tables, fields, records.
User permissions: R specific tables, R own records, M own records, A specific tables, D own records. R, M, A, D permissions applied. Including: specific tables, fields, records. Excluding: specific tables, fields, records.
Guest permissions: R specific tables, fields. Including: specific tables, fields, records. Excluding: specific tables, fields, records.

Inheritance:
- Default permissions are set in Setup
- Group inherits default permissions, except if set otherwise
- User inherits Group permissions, except if set otherwise
- Table inherits User permissions, except if set otherwise
- Field inherits Table permissions, except if set otherwise
- Template Set inherits Field permissions, except if set otherwise
- Template inherits Template Set permissions, except if set otherwise

Permissions could be assigned to user groups (Admin, Editor, User, etc.).

The truth is, that I had not much time to think on it, so it's not well thought, but may give you some idea what I really mean.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...