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.