Giter Site home page Giter Site logo

CanCreatePublicContent not checked about cfiles HOT 7 CLOSED

luke- avatar luke- commented on August 10, 2024
CanCreatePublicContent not checked

from cfiles.

Comments (7)

yurabakhtin avatar yurabakhtin commented on August 10, 2024

@luke- Fixed in core PR humhub/humhub#6836

from cfiles.

luke- avatar luke- commented on August 10, 2024

@yurabakhtin Does this checkbox really executes the core toggle action?
image

from cfiles.

yurabakhtin avatar yurabakhtin commented on August 10, 2024

@luke- This checkbox is visible only when content can be stored as public:

public

for space with only private content it is hidden:

private

In the PR humhub/humhub#6836 I have fixed a case when space visibility is updated to Private, but some page with files list was not reloaded yet, so the menu item "Change to Public" is still visible and it was possible update such file to Public, now it is fixed with this way:

fixed-case

Was the bug fixed or I miss something?

from cfiles.

luke- avatar luke- commented on August 10, 2024

@yurabakhtin Hmm, I think you missed something.

Set "CreatePublicContent" to "Deny" for regular Space Members

image

Login as "Regular Member".

Upload a "File".

The context menu is correct, the Change to "Public" option is not available:

image

When click on "Edit". The option is available:

image

from cfiles.

yurabakhtin avatar yurabakhtin commented on August 10, 2024

@luke- Thanks for the additional info. Fixed in PR humhub/humhub#6837.

from cfiles.

luke- avatar luke- commented on August 10, 2024

@yurabakhtin Can you please check the failing tests? Maybe also some tests would be great here.

from cfiles.

yurabakhtin avatar yurabakhtin commented on August 10, 2024

@luke- The tests have been fixed. I don't think we need additional tests because at least this test testCreatePublicContentOnPrivateSpace does it.

from cfiles.

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.