Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryModerator able to edit/deleteModerator able to edit/delete
Previous
 
Next
New Post
10/12/2006 10:32 AM
 

Is there a way to give the moderator the ability to edit and delete in the repository module

 

Tanks

 
New Post
10/12/2006 12:55 PM
 
Errrmm by default the Moderator has those rights. If you click on the pencil icon beside the item you want to edit/delete you'll be taken to the edit form where those actions can be accomplished.
 
New Post
10/12/2006 2:18 PM
 

not in the repository module. the only time a moderator can make a change is when is approving a document. can it be that is something wrong with my DNN.?

 

 
New Post
10/12/2006 2:37 PM
 

I think I asked about this months ago, and it was determined that you cannot edit a repository entry unless you yourself uploaded it.  The only person who can edit ALL documents is a site administrator.

Speaking of which, is there a remedy for this?  I'm getting bombarded with requests to edit files because the moderators don't have permission to do so.  It seems like a logical thing that if you are a moderator you should be able to edit ALL entries, regardless of who uploaded them.

 

 
New Post
10/12/2006 4:26 PM
 

Sorry, but no, there's no setting or configuration option that will allow anyone except the original uploader or an administrator to edit a repository item.

If you want to do that, it requires a code change.  If you're up to making code changes, the fix is as follows...

In the Repository.ascx.vb file, find the lstObjects_ItemDataBound function. In the section where the "EDIT" link is rendered, you'll see the following code...

Case "EDIT"
   If context.Current.User.Identity.IsAuthenticated And (UserInfo.UserID.ToString() = objRepository.CreatedByUser.ToString() Or _
      PortalSecurity.IsInRole(PortalSettings.AdministratorRoleName)) Then
      ...

You can see that you need to be logged in AND either the original author of the Repository item, or a portal administrator. To allow moderators to also edit items is pretty easy ... there's a boolean for each security option, so b_CanModerate will be true or false if the current user is a moderator, just change the above code to include moderators.

Case "EDIT"
   If context.Current.User.Identity.IsAuthenticated And (UserInfo.UserID.ToString() = objRepository.CreatedByUser.ToString() Or _
      PortalSecurity.IsInRole(PortalSettings.AdministratorRoleName)) Or b_CanModerate Then
      ...

I believe that would do it.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryModerator able to edit/deleteModerator able to edit/delete


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out