Code Monkey home page Code Monkey logo

Comments (9)

stevenolen avatar stevenolen commented on August 15, 2024

On second thought, we may not want to completely cut a user off from authoring a survey. I think our main goal is just to inform them that given current permissions, they will not be able to upload here (so they may not want to waste their time). thoughts, @hongsudt ?

from author.

hongsudt avatar hongsudt commented on August 15, 2024

if they don't have the campaign creation privilege, we shouldn't let them continue. The warning should direct them to contact their system administrator for obtaining the privilege.

from author.

hongsudt avatar hongsudt commented on August 15, 2024

@jeroenooms I would love for the users to be able to use this tool to look at the content of the campaign, even though they don't have campaign creation privilege. The tool makes it so easy, comparing to reading the xml directly.

from author.

jeroen avatar jeroen commented on August 15, 2024

But the entire tool is made for editing. We would have to disable all of the forms and input fields and close x buttons and drag-drop features, etc. Otherwise the user might still be under the impression that she can edit the campaign and only find out later that the submit button is not working.

from author.

hongsudt avatar hongsudt commented on August 15, 2024

what about just disable the upload button with the tooltip that suggests
that you have no right to update the campaign?

On Thu, Dec 10, 2015 at 2:32 PM, Jeroen Ooms [email protected]
wrote:

But the entire tool is made for editing. We would have to disable all of
the forms and input fields and close x buttons and drag-drop features,
etc. Otherwise the user might still be under the impression that she can
edit the campaign and only find out later that the submit button is not
working.


Reply to this email directly or view it on GitHub
#19 (comment).

from author.

jeroen avatar jeroen commented on August 15, 2024

Yes we can do that, but I think it might still lead to confusion that the user has a full editing tool, but then won't be able to submit.

from author.

jeroen avatar jeroen commented on August 15, 2024

ACL rules:

  • user can create campaign if:
    • user is admin
    • user has campaign create privilege
  • user can update campaign if:
    • count == 0 and user is admin
    • count == 0 and user has campaign role author or supervisor

from author.

hongsudt avatar hongsudt commented on August 15, 2024

yes. That's the rule. I just happened to work on that API yesterday to allow admin to update.

from author.

jeroen avatar jeroen commented on August 15, 2024

OK this should now be implemented. The application will raise a warning if the user does not have sufficient privileges (based on the ACL rules above) to create or update a campaign and disable the submission button.

from author.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.