Skip to content

Query to reset default permission on a content type on Rhythmyx 7.3.0? #598

Answered by natechadwick
mariosm1 asked this question in Q&A
Discussion options

You must be logged in to vote

This query will return the list of ACL, ENTRY, and Permission by content type:

SELECT CONTENTTYPENAME, PSX_ACLS.ID,PA.ID, PA.TYPE,P.PERMISSION FROM PSX_ACLS INNER JOIN CONTENTTYPES ON PSX_ACLS.OBJECTID = CONTENTTYPEID
INNER JOIN PSX_ACLENTRIES PA on PSX_ACLS.ID = PA.ACLID
INNER JOIN PSX_ACLENTRYPERMISSIONS P on PA.ID = P.ENTRYID
WHERE PSX_ACLS.OBJECTTYPE=2

Content Types are object type 2.

To completely clear the existing ACL's on a content type you could do something like this (replace ? with the content type id of the content type you want to clear the permissions for):

DELETE FROM PSX_ACLENTRYPERMISSIONS WHERE
        PSX_ACLENTRYPERMISSIONS.ENTRYID IN(SELECT PSX_ACLENTRIES.ID FROM PSX…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@natechadwick
Comment options

Answer selected by mariosm1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants