GithubHelp home page GithubHelp logo

Comments (12)

brunnopleffken avatar brunnopleffken commented on May 28, 2024

Hmm... You're trying to edit other member's post as Administrator?
I'll check this out.

from addictive-community.

halojoy avatar halojoy commented on May 28, 2024

No. I have posted this myself as Admin.
But can not edit. Delete works.
I have only one account = Admin.
So, it is my own post I try to edit.

from addictive-community.

halojoy avatar halojoy commented on May 28, 2024

Now I can edit my post.
I thnik you have solved this.
I close this.

from addictive-community.

halojoy avatar halojoy commented on May 28, 2024

As an admin I can edit posts. It works now.
But not the first Welcome post. There is no edit button for first post.

As a normal member I can not edit my post.
When submit from editor I get: "You cannot edit a post that you did not publish."
Delete of posts is working.

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 28, 2024

I'll get a time to rewrite these permissions, perhaps extract it to a method, otherwise I might get stuck in these fixes of already fixed code...

I will work on it! ;)

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 28, 2024

Well, I think I got it!
$this->Session->session_info returns information about the currently logged in member. OK. But Http::Request() also get cookies (as cookies are also $_REQUEST). These values were conflicting.

Can you please test this fix to see it it solves this issue?

from addictive-community.

halojoy avatar halojoy commented on May 28, 2024

Now It works!
I think you have fixed it. AS a member I can edit my posts.

Still there is no way to edit first post in a thread. There is no edit button.

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 28, 2024

Edit first post is here! ;)

from addictive-community.

halojoy avatar halojoy commented on May 28, 2024

Nice. A button EDIT for first post.
Unfortunately I get a SQL error when pushing the button:
An error occoured on the following query: SELECT title FROM c_threads WHERE t_id = ;

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 28, 2024

Oh man, bad bad mistake.
I was passing thread ID as parameter instead of post ID.
My bad! =P

I think it's working now!

from addictive-community.

halojoy avatar halojoy commented on May 28, 2024

It works now.
You are very good. But it is naturally. You know your forum software well.

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 28, 2024

Thanks!! This is one of the advantages of building its own framework...

Well, I think this issue is closed then!
I'm really thankful for your support!

from addictive-community.

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.