mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 15:05:50 +01:00
(refs #464)Add Scaladoc
This commit is contained in:
@@ -1,11 +1,36 @@
|
|||||||
package plugin
|
package plugin
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines enum case classes to specify permission for actions which is provided by plugin.
|
||||||
|
*/
|
||||||
object Security {
|
object Security {
|
||||||
|
|
||||||
sealed trait Security
|
sealed trait Security
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All users and guests
|
||||||
|
*/
|
||||||
case class All() extends Security
|
case class All() extends Security
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only signed-in users
|
||||||
|
*/
|
||||||
case class Login() extends Security
|
case class Login() extends Security
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only repository owner and collaborators
|
||||||
|
*/
|
||||||
case class Member() extends Security
|
case class Member() extends Security
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only repository owner and managers of group repository
|
||||||
|
*/
|
||||||
case class Owner() extends Security
|
case class Owner() extends Security
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Only administrators
|
||||||
|
*/
|
||||||
case class Admin() extends Security
|
case class Admin() extends Security
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user