Comments (2)
We used to have something similar for gallery pages. You could have the same image displayed on multiple galleries. Turns out it's a mess for permissions:
What if an asset is shared from a page with one set of permissions to a page with a different set of permissions? Well it should probably show up on both pages for all users that have access to each of the pages. Not so hard, right?
Well... fetching the page and fetching the thumbnail or the attachment itself are two distinct requests. So for the second request we need to check if the asset is attached to any page the user has access to. Determining the access to a single page is quite complex all by itself. You can have access because the page has been shared with a committee of a network one of your groups is in.
So we decided that pages determine access permissions. Everything that is access restricted can only be on a single page.
So I am open to copying or moving assets from one page to another. However copying would effectively create a new asset with the same content rather than sharing the same asset between the pages. I'd rather waste disc space than deal with increasing the complexity of our permission system.
from crabgrass-core.
So I am open to copying or moving assets from one page to another. However copying would effectively create a new asset with the same content rather than sharing the same asset between the pages. I'd rather waste disc space than deal with increasing the complexity of our permission system.
That makes sense to me.
The simplest use case for this is just wiki gardening: I want to move Asset 1 attached from Page A to Page B where both Page A and Page B are within the same group. Currently, doing this is a somewhat involved process:
- Locate Asset 1 on Page A.
- Download/copy Asset 1.
- Go to Page B.
- Upload local copy of Asset 1 to Page B, creating Asset 2.
- Return to Page A.
- Delete Asset 1 from Page A.
If the only thing that happens is a convenience button to perform these steps for me, we can call it "Move asset to another page" for instance, I would be happy. :) In this case, nothing about the logic to determine access permissions for the asset would need to change.
Does that sound feasible?
from crabgrass-core.
Related Issues (20)
- Write a simple backup script using wget HOT 14
- Text of site internal links should extend to Title of link HOT 1
- Wiki differences showing up instead of page summary HOT 3
- Updating profile image does not change profile image at older files HOT 4
- Creating account when accepting an invite doesn't work HOT 1
- Feature Request: Automatically sign out after some time of inactivity HOT 1
- Failed to install HOT 6
- rake cg:compile_assets aborted HOT 10
- Send mail notifications about pages if email checkbox is checked. HOT 10
- Feature request: Allow a user to add an OpenPGP compatible public key to their profile to receive encrypted emails HOT 2
- Export the db structure (of a group) so I can setup my own crabcrass
- Support some kind of export format like XWR to be able import data into another CMS
- [UX] Preview area: Thumbnail link to open document / pdf is way too small
- Thumbnail generation fails for PDFs or OpenDocument
- Tasks from deleted groups still appearing in "Personal Tasks Page" HOT 1
- Search/Filter by Starred pages
- Adding organizations to networks
- I'd like to contribute! HOT 3
- Hey this is a test
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 crabgrass-core.