Tags:
create new tag
view all tags

SID-00563: "Directory" / WebHome >>Access & User-Rights

Status: Answered Answered TWiki version: 4.3.2 Perl version:
Category: CategoryAccessControl Server OS: Last update: 16 years ago

Hope, that someone find this question useful!?

Problem. If you do a list of %INCLUDE{ ... warn="off"}%, then you're able to "exclude" non privileged users from access to content. I would like to make one big directory at WebHome

for different User-Groups to give them access to Topics. If they have the right to view, they should see the link ... It should look like [[MyTopicWithAccessRights warn="off"]]

So, if you have a list of 5 items. only 3 of them should be seen from not-privileged users ...; the rest is reserved for the "admin-Group" to view ...

Does anybody has an idea (or workaround) for that?

Thanks, Norbert

-- NorbertKress - 2009-10-09

Discussion and Answer

Simple solution: Include an access restricted page that creates the bullet. It could be even the actual page with content if you put the bullet into its own named section. When you include the page in the homepage, specify the section.

More at VarINCLUDE, IncludeTopicsAndWebPages, VarSTARTSECTION

-- PeterThoeny - 2009-10-09

That's the list, I would like to work with:

Please have a look at the source-code. I have no idea how to code, that you could see the source. May be, you could do it smile

   * [[TopicOneRightsAdmin][Topic One - Admin]]
   * [[TopicTwoRightsBerater][Topic Two - Berater]]
   * [[TopicTreeRightsAnwender][Topic Three - Anwender]]
   * [[TopicFourRightsAdmin][Topic Four - Admin]]
   * [[TopicFiveRightsBerater][Topic Five - Berater]]
   * [[TopicSixRightsAnwender][Topic Six - Anwender]]
   * [[TopicSevenRightsAdmin][Topic Seven - Admin]]
   * [[TopicEightRightsBerater][Topic Eight - Berater]]
   * [[TopicNineRightsAnwender][Topic Nine - Anwender]]
   * [[TopicTenRightsAdmin][Topic 10 - Admin]]

The rights are the rights of the user Admin, Anwender, Berater and every one of them should only see hist "Group"-inventory. I don't see, how to work with %INCLUDE%

-- NorbertKress - 2009-10-09

1. In TopicOneRightsAdmin, create this section:

<!--
%STARTSECTION{ "bullet_link" }%   * [[TopicOneRightsAdmin][Topic One - Admin]]%ENDSECTION{ "bullet_link" }%
-->

2. In your homepage do this:

%INCLUDE{ "TopicOneRightsAdmin" section="bullet_link" }%

Repeat this for other access restricted pages.

-- PeterThoeny - 2009-10-09

Ok, fine - I've tried it and it worked mostly as I wanted. As you see im the example, there is a "sort" within the topics. So in my case, I get as

ADMIN-view:
   * [[TopicTreeRightsAnwender][Topic Three - Anwender]]
   * [[TopicSixRightsAnwender][Topic Six - Anwender]]
   * [[TopicNineRightsAnwender][Topic Nine - Anwender]]
   * [[TopicTwoRightsBerater][Topic Two - Berater]]
   * [[TopicFiveRightsBerater][Topic Five - Berater]]
   * [[TopicEightRightsBerater][Topic Eight - Berater]]
   * [[TopicOneRightsAdmin][Topic One - Admin]]
   * [[TopicFourRightsAdmin][Topic Four - Admin]]
   * [[TopicSevenRightsAdmin][Topic Seven - Admin]]
   * [[TopicTenRightsAdmin][Topic 10 - Admin]]

BERATER-view:
   * [[TopicTreeRightsAnwender][Topic Three - Anwender]]
   * [[TopicSixRightsAnwender][Topic Six - Anwender]]
   * [[TopicNineRightsAnwender][Topic Nine - Anwender]]
   * [[TopicTwoRightsBerater][Topic Two - Berater]]
   * [[TopicFiveRightsBerater][Topic Five - Berater]]
   * [[TopicEightRightsBerater][Topic Eight - Berater]]

ANWENDER-view:
   * [[TopicTreeRightsAnwender][Topic Three - Anwender]]
   * [[TopicSixRightsAnwender][Topic Six - Anwender]]
   * [[TopicNineRightsAnwender][Topic Nine - Anwender]]
Do you have another idea/hint how to sort the topics from one 2 ten?

-- NorbertKress - 2009-10-12

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title "Directory" / WebHome >>Access & User-Rights
SupportCategory CategoryAccessControl
TWiki version 4.3.2
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2009-10-12 - NorbertKress
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.