Giter Site home page Giter Site logo

Comments (3)

fguillot avatar fguillot commented on July 20, 2024

I just tried with Firefox 27, and it seems to work for me.

Do you have any error messages or php errors?

Can you try with the online demo to see if the problem come from your installation or something else, http://demo.kanboard.net/ and demo/demo123

Thanks.

from kanboard.

toomyem avatar toomyem commented on July 20, 2024

I've made some investigation and it looks like there is a mistake in isUserAllowed function. I made a pull request #42 to correct it. I'm not very familiar with the code yet, so maybe it can be done in some better way. Now I'm just suggesting a possible solution.

I noticed that the problem with DnD occurs when I'm logged as user with admin privileges and try to move task in project which has some users in acl. It happened that my current user were not on this acl list. That is why DnD were not performed.

But in this case there shall be some notification to the user that he is not allowed to move the task and task shall be moved back on the board to the original column. This is not covered by my pull request.

I see you have tests related to users in project. But you are testing the opposite case. Is this correct?

$this->assertFalse($p->isUserAllowed(1, 1));

User 1 is admin and was revoked two lines earlier. But it is admin, so even so he shall be allowed.

from kanboard.

fguillot avatar fguillot commented on July 20, 2024

Yes you are right, so I merged your pull-request. I improved my unit test but it's not entirely done, I don't cover all cases. I also need to improve the DnD...

I close this issue because you finally found the problem.

from kanboard.

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.