Allow certain users to Edit

Forums Classic DFFS Allow certain users to Edit

Viewing 1 reply thread
  • Author
    Posts
    • #12882
      Thomas Wolstenholme
      Participant

      Hi,

      I wondered if you could help me with something.

      I am trying to give permission to edit the list items but only to certain users which vary from item to item, hence why I can’t just create a tab and select a group permission to view.

      Basically I would like the following people access to edit the list items but I cant for the life of me figure out how:
      1) Creator of the list item
      2) User/users in the 1st Approval field (People Picker field type)
      3) User/users in the 2nd Approval field (People Picker field type)

      Any help would be most appreciated and of course beers will be sent!

    • #12920
      Alexander Bautz
      Keymaster

      To compare with these three fields you need to set up the four rules you find attached.

      When this is done, you must add this to the custom js:

      function goBackToWhereYouCameFrom(){
          spjs.dffs.dlgBox("You shall not pass!!!!",false,function(){
              window.history.back();
          });
      }

      If you like to use the default alert box you can change it like this:

      function goBackToWhereYouCameFrom(){
          alert("You shall not pass!!!!");
          window.history.back();
      }

      Let me know how this works out.

      Alexander

      • #12926
        Thomas Wolstenholme
        Participant

        Thanks for the reply/help/advice Alex!

        I will be trying it out today so will let you know how I get on. Loving the Lord of the Rings reference though 😉

        Thank you again!

Viewing 1 reply thread
  • You must be logged in to reply to this topic.