Comments (9)
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.
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.
@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.
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.
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.
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.
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
orsupervisor
from author.
yes. That's the rule. I just happened to work on that API yesterday to allow admin to update.
from author.
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)
- audio: change max length to seconds HOT 3
- single/multi-choice: make sure at least one choice is defined HOT 6
- add ID: to the campaign urn HOT 1
- move "enable syntax highlighting" location? HOT 2
- change "campaign authoring: editor" to Campaign Editor HOT 1
- allow configuration of allowed prompt type HOT 12
- add support for "file" prompt type HOT 1
- asterisk next to required fields? HOT 3
- merge codebase with `campaigns` HOT 2
- add close button to prompt popover HOT 3
- ID: included in generated campaign urn HOT 1
- Generated campaign ID throws error on campaign submission HOT 1
- Campaign info validation HOT 2
- Text min/max length validation didn't work HOT 4
- Max file size needs specific info HOT 4
- Can't access add prompt modal on FF HOT 2
- number prompt: default value validation HOT 1
- Test for response count HOT 1
- add "editable responses" parameter to campaign states HOT 6
- switches after initial campaign upload
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from author.