Loading...
 
Features / Usability

Features / Usability


Re: Re: Limit Article Editing to Owner and Admin

posts: 37

Rick,
Perfect, thank you. The idea of making 20+ groups every semester was silly (no offense John! You idea would have worked if I only had one or two to do).

To be specific with what I did:

  1. The edit action is is article_trailer.tpl, not article.tpl (for anyone else who looks to do this)
  2. In order to keep edit rights for the admin as well as the student, I added a new if statement at line 28 : {if $user eq $author} ,
  3. and and elseif at line 86, {elseif $user eq admin} (or whatever the admin username actually is), the copied all of the lines in between and pasted them again, since the admin rights and the user rights will pass different tests, then finishing with
  4. an else statement and a closing if before the closing div tags (3): {else}{tr}No Available Actions{/tr} {/if}


I've attached a .txt of what I have . It seems to work. I can assign an article to the username of my instructor account, can edit from there, can edit with my admin account, but cannot edit with my test student user account.

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting